[LLVMbugs] [Bug 12905] New: If function name is C clang crashes at clang/lib/StaticAnalyzer/Core/ObjCMessage.cc line 164

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 21 11:16:41 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12905

             Bug #: 12905
           Summary: If function name is C clang crashes at
                    clang/lib/StaticAnalyzer/Core/ObjCMessage.cc line 164
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: gartung at fnal.gov
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8604
  --> http://llvm.org/bugs/attachment.cgi?id=8604
File with fix.

Add check for FName size on line 164:

  if (FName.size()!=1 && FName[0] == 'C' && (FName[1] == 'F' || FName[1] ==
'G'))

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list