[PATCH] Fix ICE in Clang when dealing with attribute(__no_sanitize_*__)

Adrian Zgorzalek via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 17:07:51 PDT 2015


Hey,

Here is an attempt to fix https://llvm.org/bugs/show_bug.cgi?id=25067.

Summary:

After introducing no_sanitize, we try to map no_sanitize_* into a no_sanitize(“*”), the switch in code, however doesn’t handle cases when attribute is surrounded by two underscores on each of the ends. In this patch I am trying to utilize existing normalizeAttrName function, by exposing it to outside world and using it before feeding input to the switch.

Added unit tests for the crashes I encountered and patched.

Thanks,
Adrian



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151008/0e3fca99/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_ice.patch
Type: application/octet-stream
Size: 3518 bytes
Desc: fix_ice.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151008/0e3fca99/attachment.obj>


More information about the llvm-commits mailing list