3 ms·
Possibly (dunno). But they refer to that on slide 7: - We also introduced new safer APIs like reallocarray() - I wrote a big diff for nginx to adopt
by kgadek 12y ago
Possibly (dunno). But they refer to that on slide 7:
- We also introduced new safer APIs like reallocarray()
- I wrote a big diff for nginx to adopt reallocarray() other such techniques
- And it got rejected.
- yarrel 12y agoIs reallocarray() BSD-specific? That might explain it.
- wongarsu 12y agoIt's OpenBSD specific. But it's also just 10 lines of portable C that are permissively licensed and can be added to any project without problems. It's even in a separate source file for this very purpose [1] [1] https://github.com/robertbachmann/openbsd-libc/blob/master/stdlib/reallocarray.c https://github.com/robertbachmann/openbsd-libc/blob/master/s...
- angersock 12y agoI like that. I might even swipe it for my own projects.