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

            Bug ID: 16482
           Summary: failure to find use after free
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: OpenBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 10791
  --> http://llvm.org/bugs/attachment.cgi?id=10791&action=edit
code containing clear use-after-free, which fails to register in the static
analyzer

While attempting to find an issue regarding false use-after-free warnings with
BSD macros, I have apparently found that the static analyzer fails to register
a valid use-after-free warning:

$ scan-build make macro-use-after-free-false-positive
scan-build: Using '/usr/local/bin/clang-3.2' for static analysis
/usr/local/bin/ccc-analyzer -O2 -pipe    -o macro-use-after-free-false-positive
macro-use-after-free-false-positive.c 
scan-build: Removing directory '/tmp/scan-build-2013-06-28-4' because it
contains no reports.

Code containing use-after-free is attached.

more info regarding clang/OS:

$ clang --version
clang version 3.2 (tags/RELEASE_32/final)
Target: amd64-unknown-openbsd5.3
Thread model: posix


$ uname  -mrsv 
OpenBSD 5.3 GENERIC.MP#5 amd64

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to