]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Check for integer overflow in memalign.
authorWill Newton <will.newton@linaro.org>
Fri, 16 Aug 2013 11:54:29 +0000 (12:54 +0100)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 15 Nov 2013 17:43:05 +0000 (11:43 -0600)
commit66a49fcc5e0cd5d652347ee5983c0bbd00fdeee9
tree37c1b9423a8a153757aa60e5f73c2ea97d7980b6
parented595041168e6353afeb6157181ef9d5e047bb11
malloc: Check for integer overflow in memalign.

A large bytes parameter to memalign could cause an integer overflow
and corrupt allocator internals. Check the overflow does not occur
before continuing with the allocation.

ChangeLog:

2013-09-11  Will Newton  <will.newton@linaro.org>

[BZ #15857]
* malloc/malloc.c (__libc_memalign): Check the value of bytes
does not overflow.
ChangeLog
malloc/malloc.c