summaryrefslogtreecommitdiffstats
path: root/third_party/mesa/MesaLib/src
diff options
context:
space:
mode:
authorglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-31 12:06:25 +0000
committerglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-31 12:06:25 +0000
commit3f1baeb51404afa3ce44bc77d59a02b20c37a0c5 (patch)
treea6cddbc917b654ab39c0b73b43783048eb65cd2f /third_party/mesa/MesaLib/src
parente4d27a2268bb4ff350a28a707de78c8d1b3dcd78 (diff)
downloadchromium_src-3f1baeb51404afa3ce44bc77d59a02b20c37a0c5.zip
chromium_src-3f1baeb51404afa3ce44bc77d59a02b20c37a0c5.tar.gz
chromium_src-3f1baeb51404afa3ce44bc77d59a02b20c37a0c5.tar.bz2
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@149172 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/mesa/MesaLib/src')
-rw-r--r--third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp b/third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp
index 93b6c30..2f8adcff 100644
--- a/third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp
+++ b/third_party/mesa/MesaLib/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);
/**