diff options
author | Alexander Potapenko <glider@google.com> | 2013-08-07 12:39:00 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2013-08-07 12:39:00 +0000 |
commit | ce3241009768389fd3185e8b1ea1dd4623d0bc61 (patch) | |
tree | cd04f2a2ebfb5fcdecd3c2a84fcf9ce54d533baa /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | 45c54ad8dcb56e66183b5713716394a457125dd9 (diff) | |
download | bcm5719-llvm-ce3241009768389fd3185e8b1ea1dd4623d0bc61.tar.gz bcm5719-llvm-ce3241009768389fd3185e8b1ea1dd4623d0bc61.zip |
[TSan] Let the users suppress use-after-free errors using the "race:" suppressions.
If there's a race between a memory access and a free() call in the client program,
it can be reported as a use-after-free (if the access occurs after the free()) or an ordinary race
(if free() occurs after the access).
We've decided to use a single "race:" prefix for both cases instead of introducing a "use-after-free:" one,
because in many cases this allows us to keep a single suppression for both the use-after-free and free-after-use.
This may be misleading if the use-after-free occurs in a non-racy way (e.g. in a single-threaded program).
But normally such bugs shall not be suppressed.
llvm-svn: 187885
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions