Project

General

Profile

Bug #13438 » 0001-Fix-heap-overflow-by-allocating-more-memory-per-heap.patch

jeremyevans0 (Jeremy Evans), 04/17/2017 08:33 PM

View differences:

gc.c
int limit = HEAP_PAGE_OBJ_LIMIT;
/* assign heap_page body (contains heap_page_header and RVALUEs) */
page_body = (struct heap_page_body *)aligned_malloc(HEAP_PAGE_ALIGN, HEAP_PAGE_SIZE);
page_body = (struct heap_page_body *)aligned_malloc(HEAP_PAGE_ALIGN, HEAP_PAGE_SIZE+REQUIRED_SIZE_BY_MALLOC);
if (page_body == 0) {
rb_memerror();
}
(2-2/4)