<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 --- - False positive in checker: Function call argument is an uninitialized value"
href="http://llvm.org/bugs/show_bug.cgi?id=16400">16400</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>False positive in checker: Function call argument is an uninitialized value
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>kremenek@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>me@moshekaplan.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=10725" name="attach_10725" title="wireshark/tshark.c Line: 2721">attachment 10725</a> <a href="attachment.cgi?id=10725&action=edit" title="wireshark/tshark.c Line: 2721">[details]</a></span>
wireshark/tshark.c Line: 2721
Tested with clang r184521 on Ubuntu 13.04, x86.
Clang claims that one of the arguments of a function call is uninitialized.
However, it only reaches that code path after:
"Assuming 'do_dissection' is 0", and
"Assuming 'do_dissection' is not equal to 0",
with no usage or access of do_dissection in between.
do_dissection is a "static gboolean", and if you examine the docs:
( <a href="http://svn.abisource.com/wv/tags/release-version-0-7-11/glib-wv/glib.h">http://svn.abisource.com/wv/tags/release-version-0-7-11/glib-wv/glib.h</a> )
typedef int gint;
typedef gint gboolean;
So to my understanding, a gboolean is effectively an int.
The attached file is tshark.c from wireshark r50104.</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>