diff options
author | Will Newton <will.newton@linaro.org> | 2013-08-16 11:59:37 +0100 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2015-01-16 06:14:26 -0500 |
commit | 71d84750188dc6e1d45a9d05e40b00c430dc5637 (patch) | |
tree | dca63c8be086340aa340b514fb01a5cbc66f4220 | |
parent | 052b65bfeee78d8ba82f070f9f10f79bb0de5376 (diff) | |
download | glibc-71d84750188dc6e1d45a9d05e40b00c430dc5637.zip glibc-71d84750188dc6e1d45a9d05e40b00c430dc5637.tar.gz glibc-71d84750188dc6e1d45a9d05e40b00c430dc5637.tar.bz2 |
malloc: Check for integer overflow in valloc.
A large bytes parameter to valloc 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 #15856]
* malloc/malloc.c (__libc_valloc): 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 #15856] + * malloc/malloc.c (__libc_valloc): Check the value of bytes + does not overflow. + +2013-09-11 Will Newton <will.newton@linaro.org> + [BZ #15855] * malloc/malloc.c (__libc_pvalloc): Check the value of bytes does not overflow. |