[llvm-bugs] [Bug 25109] New: Incorrect warning from ccc-analyzer

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 8 07:55:39 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25109

            Bug ID: 25109
           Summary: Incorrect warning from ccc-analyzer
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: lomato at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15034
  --> https://llvm.org/bugs/attachment.cgi?id=15034&action=edit
The reduced test case.

ccc-analyzer shows me an incorrect warning using strcmp(). I've reduced the
test case to the attached file. The command line that triggers the warning is

/usr/share/clang/scan-build-3.7/ccc-analyzer -I
/usr/lib/x86_64-linux-gnu/glib-2.0/include/ -I /usr/include/glib-2.0/ -Wall
testclang.c -O2 -g -DNDEBUG -lglib-2.0 -o testclang

The test case is a reduction from the wireshark source code, where the bug was
initially found. I decided to write a stripped down version of the code to
isolate it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151008/4584509a/attachment.html>


More information about the llvm-bugs mailing list