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>
Fri, 9 Dec 2016 23:07:25 +0000 (02:07 +0300)
commitbfeaf865a4f87791d3fafcf51bac5eb04e6cc072
treed15aadc8c347777fa46295f6db5bf05f3860f13b
parentfbdd97254de38951a859e9a96cf08f77435bb05a
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