diff options
author | 2014-10-18 03:10:00 +0000 | |
---|---|---|
committer | 2014-10-18 03:10:00 +0000 | |
commit | 9423a1541ea2823f017a38bf426b1bf830ec88c0 (patch) | |
tree | 6c5fe826aa7da9079102e3883924a92fa4102275 /lib/libc | |
parent | Typical malloc() with size multiplication to reallocarray(). (diff) | |
download | wireguard-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