summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2014-10-18 03:10:00 +0000
committerdoug <doug@openbsd.org>2014-10-18 03:10:00 +0000
commit9423a1541ea2823f017a38bf426b1bf830ec88c0 (patch)
tree6c5fe826aa7da9079102e3883924a92fa4102275 /lib/libc
parentTypical malloc() with size multiplication to reallocarray(). (diff)
downloadwireguard-openbsd-9423a1541ea2823f017a38bf426b1bf830ec88c0.tar.xz
wireguard-openbsd-9423a1541ea2823f017a38bf426b1bf830ec88c0.zip
Convert malloc() with a size var using multiplication to reallocarray().
Avoid assigning the size unless reallocarray() succeeds to avoid overflow. ok deraadt@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions