summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authormartijn <martijn@openbsd.org>2017-02-01 16:21:12 +0000
committermartijn <martijn@openbsd.org>2017-02-01 16:21:12 +0000
commit2e500a362e7a774789d67b799848c709129f3aa1 (patch)
treef500a55ac0062695d5b80755317703a522d2e2da /lib/libc/stdlib/malloc.c
parentAdd AMRR support to rtwn(4). Based on code from FreeBSD. (diff)
downloadwireguard-openbsd-2e500a362e7a774789d67b799848c709129f3aa1.tar.xz
wireguard-openbsd-2e500a362e7a774789d67b799848c709129f3aa1.zip
Don't allocate the buffer for the -n flag in one call.
Fixes an ENOMEM with an extremely large -n value and a small input. Issue reported by Soner Tari OK stsp@
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions