]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Check for integer overflow in pvalloc.
authorWill Newton <will.newton@linaro.org>
Mon, 12 Aug 2013 14:08:02 +0000 (15:08 +0100)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 15 Jan 2015 19:59:24 +0000 (14:59 -0500)
commitb1e934aed5170eb8948e0f3c6618c9431d6810ad
tree01873b0d5fde469253bdcb9d0182db69fbba793b
parentbcd619797e785f90cc9fd67208267c26c8e4b40d
malloc: Check for integer overflow in pvalloc.

A large bytes parameter to pvalloc 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 #15855]
* malloc/malloc.c (__libc_pvalloc): Check the value of bytes
does not overflow.
ChangeLog
malloc/malloc.c