stronglink icon indicating copy to clipboard operation
stronglink copied to clipboard

Integer overflow checks

Open btrask opened this issue 9 years ago • 1 comments

We already use calloc and reallocarray. We should also start using compiler intrinsics (or substitutes where unavailable) for safe integer operations.

btrask avatar Jul 26 '15 19:07 btrask

https://news.ycombinator.com/item?id=10497164 http://lkml.iu.edu/hypermail/linux/kernel/1510.3/02866.html

Gotta be careful. It's very easy to make things gratuitously complex without really improving security.

btrask avatar Nov 03 '15 16:11 btrask