]> 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 19:00:03 +0000 (22:00 +0300)
commitd9119e384e5ddcd6ee187229a30a0aef2c5203ab
tree45535456ab306ac660cbe63d01fc2212b345098c
parent51e3922af8059e1af4b8c807508a76a7f4e3ea72
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