]> granicus.if.org Git - gc/commit
Eliminate UBSan warning of overflow during descr subtraction in mark_from
authorIvan Maidanski <ivmai@mail.ru>
Thu, 14 Dec 2017 21:54:04 +0000 (00:54 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 14 Dec 2017 21:54:04 +0000 (00:54 +0300)
commit1e2d919ef0c1845dbe2f12dbbcff9e05055e2ea3
tree47178607ca4e3583b9a4e2d129dab932806c07d2
parenta239976a7fe8e98f8e6d9afc2bb812cee720a445
Eliminate UBSan warning of overflow during descr subtraction in mark_from

There is no unsigned overflow because descr has a negative value
actually when it is subtracted from type_descr.

* mark.c (GC_mark_from): Cast descr to signed_word
in (type_descr-(descr+...)).
mark.c