[Cryptography] It's all K&R's fault
Sampo Syreeni
decoy at iki.fi
Sat Apr 19 20:38:03 EDT 2014
On 2014-04-19, Patrick Chkoreff wrote:
> Or just avoid the dangerous stuff and write your own bounds-checked
> functions in C:
>
> https://github.com/chkoreff/Fexl/blob/fresh/src/str.c#L45
Don't do either. Get an intelligent compiler for an intelligent
language, which inserts the bound checks when needed, and optimizes them
away when possible. Win-win.
--
Sampo Syreeni, aka decoy - decoy at iki.fi, http://decoy.iki.fi/front
+358-40-3255353, 025E D175 ABE5 027C 9494 EEB0 E090 8BA9 0509 85C2
More information about the cryptography
mailing list