<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - failure to find use after free"
   href="http://llvm.org/bugs/show_bug.cgi?id=16482">16482</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>failure to find use after free
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>OpenBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>kremenek@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bret.lambert@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10791" name="attach_10791" title="code containing clear use-after-free, which fails to register in the static analyzer">attachment 10791</a> <a href="attachment.cgi?id=10791&action=edit" title="code containing clear use-after-free, which fails to register in the static analyzer">[details]</a></span>
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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>