<div id="geary-body"><div><br></div></div><div id="geary-signature"><div style="white-space: pre;">Regards,
Shaleen Jain</div></div><div id="geary-quote"><br>On Mon, Jul 24, 2017 at 1:09 PM, Rémi Denis-Courmont <remi@remlab.net> wrote:<br><blockquote type="cite"><div class="gmail_quote">Le 24 juillet 2017 09:49:33 GMT+03:00, Shaleen Jain <shaleen.jain95@gmail.com> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Undefined behaviour<br>---<br> modules/demux/avi/avi.c | 2 +-<br> 1 file changed, 1 insertion(+), 1 deletion(-)<br><br>diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c<br>index c0f47ac1a8..586e27eaa6 100644<br>--- a/modules/demux/avi/avi.c<br>+++ b/modules/demux/avi/avi.c<br>@@ -1003,7 +1003,7 @@ static int Demux_Seekable( demux_t *p_demux )<br> for( i_track = 0; i_track < p_sys->i_track; i_track++ )<br> {<br> avi_track_t *tk = p_sys->track[i_track];<br>- bool b;<br>+ bool b = false;<br> <br> es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE, tk->p_es, &b );<br> if( tk->p_es_dv_audio )</pre></blockquote></div><br clear="all">How is that UB? Unless the control reads the value, but the name implies that it sets it.</blockquote><blockquote type="cite"></blockquote>It is UB in cases where the control doesn't get a valid value which is read further down.<br><blockquote type="cite">
-- <br>
Rémi Denis-Courmont<br>
Typed on an inconvenient virtual keyboard</blockquote></div>