<html>
<head>
<base href="https://bugzilla.icculus.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 - Undefined behavior"
href="https://bugzilla.icculus.org/show_bug.cgi?id=6432">6432</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Undefined behavior
</td>
</tr>
<tr>
<th>Product</th>
<td>ioquake3
</td>
</tr>
<tr>
<th>Version</th>
<td>GIT MASTER
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P3
</td>
</tr>
<tr>
<th>Component</th>
<td>Platform
</td>
</tr>
<tr>
<th>Assignee</th>
<td>zachary@ioquake.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mine@ukr.net
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>quake3-bugzilla@icculus.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=3558&action=diff" name="attach_3558" title="Suggested solution">attachment 3558</a> <a href="attachment.cgi?id=3558&action=edit" title="Suggested solution">[details]</a></span>
Suggested solution
Undefined behavior in shift operation if shift counter is greater or equal 32
(MAX_DLIGHTS atm):
R_RecursiveWorldNode( tr.world->nodes, 15, ( 1 << tr.refdef.num_dlights ) - 1
);
So, for example, on x86 arch ((1<<[volatile]32)-1) produces 0x0 instead of
0xFFFFFFFF because shift counter is masked to 5 bits</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>