]> git.eshelyaron.com Git - emacs.git/commit
Suppress sanitizer errors about pointer arithmetic in a few places
authorPhilipp Stephani <phst@google.com>
Sat, 1 Aug 2020 14:58:06 +0000 (16:58 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 1 Aug 2020 15:01:00 +0000 (17:01 +0200)
commita2323c7ccb0eab1b6395d5d1d7e18db617354e13
treeb70cda01788d1391dc6fddcfff68342b45ad2de1
parent91d539b0772d4b2a6bdc3fbccf92dc1fcc7f747a
Suppress sanitizer errors about pointer arithmetic in a few places

We perform weird pointer arithmetic due to the layout of Lisp_Objects
holding symbols.  ASan/UBSan warns about that (Bug#42530).  Suppress
the warnings by performing the arithmetic on integer types and casting
back to pointers.

* src/alloc.c (mark_maybe_object, mark_memory): Temporarily cast
pointer to 'intptr_t'.
src/alloc.c