<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - false positive null pointer dereference"
href="https://bugs.llvm.org/show_bug.cgi?id=41938">41938</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>false positive null pointer dereference
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>8.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>dcoughlin@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>artur@ebasoft.com.pl
</td>
</tr>
<tr>
<th>CC</th>
<td>dcoughlin@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=21974" name="attach_21974" title="source code, sa output">attachment 21974</a> <a href="attachment.cgi?id=21974&action=edit" title="source code, sa output">[details]</a></span>
source code, sa output
SA reports null ptr dereference but it is not possible to pointer to be null.
Propably error is connected that pointer points to one of 2 elements of an in
class array and that to indexing is used operator & -> [index & 1]
minimal test case attached ( doesn't have logic sense, stripped to inimal case
still reported as error)
see :
sa/configure.sh
sa/build.sh
SA html output atatched too in folder sa/sa_out</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>