diff options
author | Will Newton <will.newton@linaro.org> | 2013-08-16 12:54:29 +0100 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2015-01-16 06:14:54 -0500 |
commit | 9c77803abebe02a99a5329e28627e1ad6d074cfe (patch) | |
tree | 058549fee26b8e4989c9e481ee1e8d479c38a07e | |
parent | 71d84750188dc6e1d45a9d05e40b00c430dc5637 (diff) | |
download | glibc-9c77803abebe02a99a5329e28627e1ad6d074cfe.zip glibc-9c77803abebe02a99a5329e28627e1ad6d074cfe.tar.gz glibc-9c77803abebe02a99a5329e28627e1ad6d074cfe.tar.bz2 |
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.
-rw-r--r-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -337,6 +337,12 @@ 2013-09-11 Will Newton <will.newton@linaro.org> + [BZ #15857] + * malloc/malloc.c (__libc_memalign): Check the value of bytes + does not overflow. + +2013-09-11 Will Newton <will.newton@linaro.org> + [BZ #15856] * malloc/malloc.c (__libc_valloc): Check the value of bytes does not overflow. |