]> 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 15:46:18 +0000 (19:46 +0400)
commit32973f3dd9c4102762777111da5e5beaa7d302ad
treec484df7100e322ff15a3cfd31c2dc303a3eedf71
parent65c0ef9421c5590be48b48f1f9c18e86c99ad1fa
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