bug 21124 builtin____sprintf_chk warnings
Sam Parker
Sam.Parker at arm.com
Thu Apr 9 06:24:46 PDT 2015
Hi,
Attached is a patch to address the issue raised in
https://llvm.org/bugs/show_bug.cgi?id=21124 and allows clang to issue
memory overflow warnings for builtin___sprintf_chk in more situations
than g++ does. It handles integer literals with their format specifiers
and flags as well as string literals, const char* references and
floating point literals if hex formatting is selected.
Cheers,
Sam
Sam Parker
Graduate Compiler Engineer
ARM Ltd, Cambridge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150409/e21dd84e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 21124-sprintf_chk.patch
Type: application/octet-stream
Size: 18036 bytes
Desc: 21124-sprintf_chk.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150409/e21dd84e/attachment.obj>
More information about the cfe-commits
mailing list