]> granicus.if.org Git - gc/commit
Fix allocation size overflows due to rounding.
authorXi Wang <xi.wang@gmail.com>
Wed, 14 Mar 2012 20:55:08 +0000 (04:55 +0800)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 15 Mar 2012 13:20:46 +0000 (21:20 +0800)
commitbe9df82919960214ee4b9d3313523bff44fd99e1
treeb7f711e3c501d119f3a22f36dd5cd847420f3c0e
parente10c1eb9908c2774c16b3148b30d2f3823d66a9a
Fix allocation size overflows due to rounding.

* malloc.c (GC_generic_malloc): Check if the allocation size is
rounded to a smaller value.
* mallocx.c (GC_generic_malloc_ignore_off_page): Likewise.
malloc.c
mallocx.c