Commit c61fee2f authored by glider@chromium.org's avatar glider@chromium.org

Annotate _mesa_add_parameter with __attribute__((no_address_safety_analysis))...

Annotate _mesa_add_parameter with __attribute__((no_address_safety_analysis)) to suppress a report from AddressSanitizer

BUG=142316
TBR=kbr
Review URL: https://chromiumcodereview.appspot.com/10823286

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151272 0039d316-1c4b-4281-b951-d872f2087c98
parent 13273037
......@@ -105,6 +105,7 @@ _mesa_free_parameter_list(struct gl_program_parameter_list *paramList)
* \param state state indexes, or NULL
* \return index of new parameter in the list, or -1 if error (out of mem)
*/
__attribute__((no_address_safety_analysis))
GLint
_mesa_add_parameter(struct gl_program_parameter_list *paramList,
gl_register_file type, const char *name,
......
......@@ -107,3 +107,7 @@ Later modifications (see chromium.patch):
ir_to_mesa.cpp
https://code.google.com/p/chromium/issues/detail?id=139772
https://bugs.freedesktop.org/show_bug.cgi?id=52996
- Suppressed the OOB read reported by AddressSanitizer in _mesa_add_parameter
from prog_parameter.c
http://code.google.com/p/chromium/issues/detail?id=142316
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