[LLVMbugs] [Bug 16482] New: failure to find use after free

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 28 07:21:40 PDT 2013


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: kremenek at apple.com
          Reporter: bret.lambert at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130628/26554c79/attachment.html>


More information about the llvm-bugs mailing list