diff options
author | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-31 12:06:25 +0000 |
---|---|---|
committer | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-31 12:06:25 +0000 |
commit | 33ef6cd1b608d85c91342400e25300fd68941cd3 (patch) | |
tree | 9feec4ab5d24cdb10e973199078126dfce633295 | |
parent | 12643afd60088074720f8f517eff9a78a8837d49 (diff) | |
download | src-33ef6cd1b608d85c91342400e25300fd68941cd3.tar.gz |
Suppress the ASan reports in swizzle_for_size()
BUG=139772
TBR=kbr
Review URL: https://chromiumcodereview.appspot.com/10843004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src/third_party/mesa/MesaLib@149172 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 93b6c30..2f8adcf 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -56,6 +56,11 @@ extern "C" { #include "program/prog_parameter.h" } +#if defined(ADDRESS_SANITIZER) +// Suppress AddressSanitizer reports about OOB reads in swizzle_for_size(). +// See also http://crbug.com/139772. +__attribute__((no_address_safety_analysis)) +#endif static int swizzle_for_size(int size); /** |