ubsan: make pointer overflow recoverable
authorYann Collet <cyan@fb.com>
Thu, 17 Sep 2020 22:34:03 +0000 (15:34 -0700)
committerYann Collet <cyan@fb.com>
Thu, 17 Sep 2020 22:34:03 +0000 (15:34 -0700)
commitb223f11b2163a80c30084b14cec8dabe944740f5
tree99f736b395ba0d44988b6998085db101722294e2
parent10d2e1c69465ac51d210909ca7a447a1397736a1
ubsan: make pointer overflow recoverable

the way `base` is used must allow 2-complement address overflow.
`base` is effectively a virtual pointer, never dereferenced directly.
What matters is `base + index`.
This is the address that will be dereference and must be valid (it is properly validated).
Makefile