]> 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)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Jan 2014 13:43:07 +0000 (08:43 -0500)
commit4da92b3ac5974326963532aa16c4437d801a0efe
treeaa924a64d5d7802c59bc7f2ff2018c8546118869
parent42b872e43db7c71cd40357724f1542252eb0c708
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.

(cherry picked from commit c51d675c459aefef8d84d5a0b114010f916ea278)
malloc/malloc.c