]> granicus.if.org Git - gc/commit
Workaround 'index out of bounds' UBSan false warning in push_marked
authorIvan Maidanski <ivmai@mail.ru>
Fri, 9 Dec 2016 23:07:25 +0000 (02:07 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 6 Feb 2017 17:24:27 +0000 (20:24 +0300)
commit14669e1a4520f42369badf2871c415f38e302431
treed5f4af108193d1de317b2adb8b290398c64fae7c
parentb12519ec93b13afa8d31993e6a6efd55d8732b79
Workaround 'index out of bounds' UBSan false warning in push_marked

* mark.c (GC_push_marked): Cast (h+1)->hb_body to word before
subtraction of sz value (and cast the result back to ptr_t).
* mark.c [ENABLE_DISCLAIM] (GC_push_unconditionally): Likewise.
mark.c