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: kreme...@apple.com
          Reporter: lom...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to