summaryrefslogtreecommitdiffstats
path: root/third_party
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
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')
-rw-r--r--third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp5
-rw-r--r--third_party/mesa/README.chromium5
2 files changed, 10 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);
/**
diff --git a/third_party/mesa/README.chromium b/third_party/mesa/README.chromium
index 77c62a7..b242b66 100644
--- a/third_party/mesa/README.chromium
+++ b/third_party/mesa/README.chromium
@@ -101,3 +101,8 @@ Later modifications (see chromium.patch):
- Merged the replacement of memcpy() with memmove() in SHIFT_ARRAY declared in
s_span.c (commit a44d715d2b19dc2f8f48b01144cc38e4e2c5015a)
+
+- Suppressed the OOB read reported by AddressSanitizer in swizzle_for_size from
+ ir_to_mesa.cpp
+ https://code.google.com/p/chromium/issues/detail?id=139772
+ https://bugs.freedesktop.org/show_bug.cgi?id=52996