<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 --- - Invalid analysis path"
href="http://llvm.org/bugs/show_bug.cgi?id=17538">17538</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Invalid analysis path
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>michael.morrell@intel.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=11357" name="attach_11357" title="Source showing problem">attachment 11357</a> <a href="attachment.cgi?id=11357&action=edit" title="Source showing problem">[details]</a></span>
Source showing problem
Version 275 of the Mac OS X checker gives an incorrect "null dereference" error
on the attached source. Just run "checker-275/scan-build c++ -c
invalidpath.cpp"
and look at the path it analyzed.
It took a path where retValue.Success was false, but then immediately went down
a
patch where it was true, which is impossible.
The really weird part is that if you swap the first 2 lines in the "foo"
function, the error isn't reported.
Another weirdness is that retValue is initialized in such a way that
retValue.Success is true so that the path where it assumed it was false is not
possible either.</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>