Commit 3f1baeb5 authored by glider@chromium.org's avatar glider@chromium.org

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
parent e4d27a22
...@@ -56,6 +56,11 @@ extern "C" { ...@@ -56,6 +56,11 @@ extern "C" {
#include "program/prog_parameter.h" #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); static int swizzle_for_size(int size);
/** /**
......
...@@ -101,3 +101,8 @@ Later modifications (see chromium.patch): ...@@ -101,3 +101,8 @@ Later modifications (see chromium.patch):
- Merged the replacement of memcpy() with memmove() in SHIFT_ARRAY declared in - Merged the replacement of memcpy() with memmove() in SHIFT_ARRAY declared in
s_span.c (commit a44d715d2b19dc2f8f48b01144cc38e4e2c5015a) 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment