[PATCH] D142190: sanmd: refine selection of functions for UAR checking

Dmitry Vyukov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 20 01:31:23 PST 2023


dvyukov created this revision.
dvyukov added a reviewer: melver.
Herald added subscribers: Enna1, hiraditya.
Herald added a project: All.
dvyukov requested review of this revision.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.

There are no intrinsic functions that leak arguments.
If the called function does not return, the current function
does not return as well, so no possibility of use-after-return.
Sanitizer function also don't leak or don't return.
It's safe to both pass pointers to local variables to them
and to tail-call them.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142190

Files:
  compiler-rt/test/metadata/CMakeLists.txt
  compiler-rt/test/metadata/uar.cpp
  llvm/lib/Transforms/Instrumentation/SanitizerBinaryMetadata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142190.490751.patch
Type: text/x-patch
Size: 5196 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230120/ca21d351/attachment.bin>


More information about the llvm-commits mailing list