aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Newton <will.newton@linaro.org>2013-08-16 12:54:29 +0100
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2015-01-16 06:14:54 -0500
commit9c77803abebe02a99a5329e28627e1ad6d074cfe (patch)
tree058549fee26b8e4989c9e481ee1e8d479c38a07e
parent71d84750188dc6e1d45a9d05e40b00c430dc5637 (diff)
downloadglibc-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--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2c9dc89..14760a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.