Reland "[DFSan] Handle fast16labels for all API functions."
authorMatt Morehouse <mascasa@google.com>
Thu, 23 Jul 2020 20:53:46 +0000 (20:53 +0000)
committerMatt Morehouse <mascasa@google.com>
Thu, 23 Jul 2020 21:19:39 +0000 (21:19 +0000)
commitc6f21424288971b976b987eacb094be5038aa328
tree684c0aa5bec73a45a58f59e11cf3bf5a4bed8c93
parent645e7fc5421cf82055ae7b881f4aea92818a5569
Reland "[DFSan] Handle fast16labels for all API functions."

Support fast16labels in `dfsan_has_label`, and print an error for all
other API functions.  For `dfsan_dump_labels` we return silently rather
than crashing since it is also called from the atexit handler where it
is undefined behavior to call exit() again.

Reviewed By: kcc

Differential Revision: https://reviews.llvm.org/D84215
compiler-rt/lib/dfsan/dfsan.cpp
compiler-rt/test/dfsan/fast16labels.c