diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2023-05-16 08:46:29 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2023-05-16 18:47:06 +0300 |
commit | a06340cc0b9d2bc3b28ba95c3503fba9e1fbf4f2 (patch) | |
tree | 81f73f5d9e0738c60546a58825eb27cf1ec3a8a4 /ChangeLog | |
parent | 0a65033c4adb39fa64583d732564abeec949db43 (diff) | |
download | bdwgc-a06340cc0b9d2bc3b28ba95c3503fba9e1fbf4f2.tar.gz |
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.
Diffstat (limited to 'ChangeLog')
0 files changed, 0 insertions, 0 deletions