summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/patch.c
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-10-16 03:17:56 +0000
committermmcc <mmcc@openbsd.org>2015-10-16 03:17:56 +0000
commit322c3a8a8a986a041e28a9a9839bb4f0d808a3d0 (patch)
tree58cdcefdf28551ead10d0044de48c4170f3e6cf6 /usr.bin/patch/patch.c
parentsync (diff)
downloadwireguard-openbsd-322c3a8a8a986a041e28a9a9839bb4f0d808a3d0.tar.xz
wireguard-openbsd-322c3a8a8a986a041e28a9a9839bb4f0d808a3d0.zip
Add allocarray(), an overflow-safe allocation function.
We avoided reallocation support because it demands more fancy footwork to deal with the prepended link struct. This has been on my mind for a while, and a 2010 security review of mksh by the Android security team's Chris Palmer suggested it. ok nicm@. Also discussed with millert@ and tedu@.
Diffstat (limited to 'usr.bin/patch/patch.c')
0 files changed, 0 insertions, 0 deletions