Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp

Issue 10843004: Suppress the ASan reports in swizzle_for_size() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/mesa/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp
===================================================================
--- third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp (revision 148930)
+++ third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp (working copy)
@@ -56,6 +56,11 @@
#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);
/**
« no previous file with comments | « no previous file | third_party/mesa/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698