[cfe-commits] Fix crash in CheckerContext::isCLibraryFunction for C++ declarations with special names

Dmitri Gribenko gribozavr at gmail.com
Wed Feb 1 09:11:16 PST 2012


Hello,

Seems like nobody ran experimental.unix.cstring.BadSizeArg on any C++
source, because it crashed for me on iostream.  Attached is the patch
that fixes that and introduces a testcase.

Dmitri Gribenko

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-CheckerContext-isCLibraryFunction-crash-v1.patch
Type: text/x-diff
Size: 1224 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120201/1747711b/attachment.patch>


More information about the cfe-commits mailing list