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
21124-sprintf_chk.patch
Description: 21124-sprintf_chk.patch
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
