Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix GC_excl_table overrun on overflow in GC_exclude_static_roots
Previously, in case of full GC_excl_table[], an attempt to insert an element to it caused write past end of GC_excl_table (when shifting the tail elements) before aborting cause of the table overflow. * mark_rts.c (GC_exclude_static_roots_inner): Move check of GC_excl_table_entries upper to be before first access to GC_excl_table; move i local variable down to be near place of usage; cast result of next-GC_excl_table to size_t.
- Loading branch information