reallocarray() in OpenBSD: Integer Overflow Detection for Free
- Added on 2023-08-13
- Page: http://lteo.net/blog/2014/10/28/reallocarray-in-openbsd-integer-overflow-detection-for-free/
- See on Internet Archive
- #openbsd #security #alloc
The upcoming OpenBSD 5.6 release introduces anew libc function called reallocarray(3)that extendsrealloc(3)with built-in integer overflow detection.In this post, I’ll discuss why it’s useful and how it can be used tofix unsafe code.