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
1481 1481
    int limit = HEAP_PAGE_OBJ_LIMIT;
1482 1482

  
1483 1483
    /* assign heap_page body (contains heap_page_header and RVALUEs) */
1484
    page_body = (struct heap_page_body *)aligned_malloc(HEAP_PAGE_ALIGN, HEAP_PAGE_SIZE);
1484
    page_body = (struct heap_page_body *)aligned_malloc(HEAP_PAGE_ALIGN, HEAP_PAGE_SIZE+REQUIRED_SIZE_BY_MALLOC);
1485 1485
    if (page_body == 0) {
1486 1486
	rb_memerror();
1487 1487
    }
1488
-