]> 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>
Thu, 15 Jan 2015 20:00:57 +0000 (15:00 -0500)
commitccb8f6bab96cfcc7aedf5cd0d1946f26b028d733
treed0f99043664c345f1fd93d1a9fb0d5c564f7e901
parentf1292792799a507711ce24b497e40f8fea8f9c9c
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