Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix GC_collect_or_expand to prevent allocation size value wrap-around
(Cherry-pick commit 1f3c938 from 'release-7_4' branch.) Relates to issue #135 on Github. * alloc.c (GC_WORD_MAX): New macro. * alloc.c (GC_collect_or_expand): Limit blocks_to_get by GC_WORD_MAX / HBLKSIZE value (to avoid multiplication overflow in GC_expand_hp_inner).
- Loading branch information