Bug #13438 » 0001-Fix-heap-overflow-by-allocating-more-memory-per-heap.patch
| 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(); 
   | 
||
| 
         } 
   | 
||