<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105755#c18">Comment # 18</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105755">bug 105755</a>
from <span class="vcard"><a class="email" href="mailto:swyterzone+mesa3d@gmail.com" title="Swyter <swyterzone+mesa3d@gmail.com>"> <span class="fn">Swyter</span></a>
</span></b>
<pre>I bet that integers are the most common type by a wide margin. I also bet that
most of these loops are meant to be unrolled and vectorized.
Covering 100% of the cases is almost impossible, but initializing uninitialized
variables inside of the condition block to some known/sane value like NULL/0.f
is probably a 90% solution, because the value is going to be wrong and cause an
infinite loop anyway. You can only win.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>