<div dir="ltr">...another one very difficult to found for an human who review code :<div><br></div><div><div id="main-source-line-877" class="" style="color:rgb(0,0,0);font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;height:1.3em;white-space:nowrap;font-size:12px;line-height:12.800000190734863px">

<span class="" style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">877</span></div><div class="" style="white-space:nowrap;display:table;color:rgb(71,71,71);font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:12.800000190734863px">

<div class="" style="display:table-row"><span class="" style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:table-cell;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace">    </span><div id="defect-event-8698360-0" class="" style="background-color:rgb(252,242,238);color:rgb(221,68,34);overflow:hidden;padding:2px 2px 2px 25px;white-space:normal;display:table-cell;border:1px solid rgb(125,154,170);background-image:url(http://scan5.coverity.com:8080/images/sourcebrowser/marker-code-main-event.png);background-repeat:no-repeat no-repeat">

<span class="" style="display:block;margin-bottom:2px">CID 981482 (#1 of 1): Structurally dead code (UNREACHABLE)</span><span class="" style="font-weight:bold">unreachable:</span> <span class="">Since the loop increment "++it;" is unreachable, the loop body will never execute more than once.</span></div>

</div></div><div id="main-source-line-878" class="" style="color:rgb(0,0,0);font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;height:1.3em;white-space:nowrap;font-size:12px;line-height:12.800000190734863px">

<span class="" style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span class="" style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block"> 878</span>        <span class="" style="font-weight:bold">for</span> (<span id="xref-L-1354641-377-3" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">it</span> <span id="xref-191605210-3-2" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">=</span> <span id="xref-L-1354641-229-7" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">oldIds</span>.<span id="xref-191605342-0-2" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">find</span>(<span id="xref-L-1354641-638-2" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">info</span>.<span id="xref-191605227-1-7" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">id</span>) ; (<span id="xref-L-1354641-557-7" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">it</span> <span id="xref-191605194-3-2" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">!</span>= <span id="xref-L-1354641-331-7" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">oldIds</span>.<span id="xref-191605374-0-2" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">end</span>()) && (<span id="xref-L-1354641-61-7" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">it</span>.<span id="xref-191605248-0-2" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">key</span>() == <span id="xref-L-1354641-391-2" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">info</span>.<span id="xref-191605227-4-2" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">id</span>) ; <span id="xref-191605278-3-2" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">+</span>+<span id="xref-L-1354641-648-7" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">it</span>)</div>

<div id="main-source-line-879" class="" style="color:rgb(0,0,0);font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;height:1.3em;white-space:nowrap;font-size:12px;line-height:12.800000190734863px">

<span class="" style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span class="" style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block"> 879</span>        {</div>

<div id="main-source-line-880" class="" style="color:rgb(0,0,0);font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;height:1.3em;white-space:nowrap;font-size:12px;line-height:12.800000190734863px">

<span class="" style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span class="" style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block"> 880</span>            <span id="xref-L-1354641-67-3" class="" style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">found</span> = <span class="" style="font-weight:bold">true</span>;</div>

<div id="main-source-line-881" class="" style="color:rgb(0,0,0);font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;height:1.3em;white-space:nowrap;font-size:12px;line-height:12.800000190734863px">

<span class="" style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span class="" style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block"> 881</span>            <span class="" style="font-weight:bold">break</span>;</div>

<div id="main-source-line-882" class="" style="color:rgb(0,0,0);font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;height:1.3em;white-space:nowrap;font-size:12px;line-height:12.800000190734863px">

<span class="" style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span class="" style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block"> 882</span>        }</div>

</div><div id="main-source-line-882" class="" style="color:rgb(0,0,0);font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;height:1.3em;white-space:nowrap;font-size:12px;line-height:12.800000190734863px">

<br></div><div id="main-source-line-882" class="" style="color:rgb(0,0,0);font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;height:1.3em;white-space:nowrap;font-size:12px;line-height:12.800000190734863px">

My fix : </div><div id="main-source-line-882" class="" style="color:rgb(0,0,0);font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;height:1.3em;white-space:nowrap;font-size:12px;line-height:12.800000190734863px">

<br></div><div id="main-source-line-882" class="" style="height:1.3em"><font color="#000000" face="Consolas, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Monaco, Courier New, Courier, monospace"><span style="font-size:12px;line-height:12.571428298950195px;white-space:nowrap"><a href="http://commits.kde.org/digikam/51f78bd749d135b29ad3c3c20bfbef5790d99060">http://commits.kde.org/digikam/51f78bd749d135b29ad3c3c20bfbef5790d99060</a></span></font><br>

</div><div id="main-source-line-882" class="" style="height:1.3em"><font color="#000000" face="Consolas, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Monaco, Courier New, Courier, monospace"><span style="font-size:12px;line-height:12.571428298950195px;white-space:nowrap"><br>

</span></font></div><div id="main-source-line-882" class="" style="height:1.3em"><font color="#000000" face="Consolas, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Monaco, Courier New, Courier, monospace"><span style="font-size:12px;line-height:12.571428298950195px;white-space:nowrap">Gilles Caulier</span></font></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/14 Gilles Caulier <span dir="ltr"><<a href="mailto:caulier.gilles@gmail.com" target="_blank">caulier.gilles@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">If you are not convinced by SCAN tool, i found 2 great infine loop bugs in trace :<div><br></div><div><div style="line-height:16px;font-size:12px;white-space:nowrap;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;min-height:1.3em">


<span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">364</span><span style="color:rgb(137,48,171)">void</span> <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">ImportFilterModel</span>::<span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">slotRowsAboutToBeRemoved</span>(<span style="font-weight:bold">const</span> <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">QModelIndex</span>& <span style="color:rgb(83,91,94);font-style:italic">/*parent*/</span>, <span style="color:rgb(137,48,171)">int</span> <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">start</span>, <span style="color:rgb(137,48,171)">int</span> <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">end</span>)</div>


<div style="line-height:16px;font-size:12px;white-space:nowrap;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;min-height:1.3em">


<span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">365</span>{</div>


<div style="line-height:16px;font-size:12px;white-space:nowrap;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;min-height:1.3em">


<span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">366</span>    <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">QList</span><<span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">CamItemInfo</span>> <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">infos</span>;</div>


<div style="line-height:16px;font-size:12px;white-space:nowrap;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;min-height:1.3em">


<span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">367</span></div>


<div style="white-space:nowrap;display:table;color:rgb(71,71,71);font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:16px"><div style="display:table-row"><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:table-cell;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace">   </span><div style="background-color:rgb(252,242,238);color:rgb(221,68,34);overflow:hidden;padding:2px 2px 2px 25px;white-space:normal;display:table-cell;border:1px solid transparent;background-image:none;background-repeat:no-repeat no-repeat">


<span style="font-weight:bold">non_progress_update:</span> <span>Update "i++" makes no progress toward falsifying the loop condition "i > end".</span></div></div></div><div style="white-space:nowrap;display:table;color:rgb(71,71,71);font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:16px">


<div style="display:table-row"><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:table-cell;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace">   </span><div style="background-color:rgb(252,242,238);color:rgb(221,68,34);overflow:hidden;padding:2px 2px 2px 25px;white-space:normal;display:table-cell;border:1px solid rgb(125,154,170);background-image:url(http://scan5.coverity.com:8080/images/sourcebrowser/marker-code-main-event.png);background-repeat:no-repeat no-repeat">


<span style="display:block;margin-bottom:2px">CID 981140 (#1 of 1): Infinite loop (INFINITE_LOOP)</span><span style="font-weight:bold">loop_top:</span> <span>Top of the loop.</span></div></div></div>
<div style="white-space:nowrap;display:table;color:rgb(71,71,71);font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:16px"><div style="display:table-row"><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:table-cell;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace">   </span><div style="background-color:rgb(252,242,238);color:rgb(221,68,34);overflow:hidden;padding:2px 2px 2px 25px;white-space:normal;display:table-cell;border:1px solid transparent;background-image:none;background-repeat:no-repeat no-repeat">


<span style="font-weight:bold">loop_condition:</span> <span>If "i > end" is initially true then it will remain true.</span></div></div></div><div style="line-height:16px;font-size:12px;white-space:nowrap;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;min-height:1.3em">


<span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">368</span>    <span style="font-weight:bold">for</span> (<span style="color:rgb(137,48,171)">int</span> <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">i</span> = <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">start</span>; <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">i</span> > <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">end</span>; <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">i</span>++)</div>


<div style="line-height:16px;font-size:12px;white-space:nowrap;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;min-height:1.3em">


<span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">369</span>    {</div>


<div style="line-height:16px;font-size:12px;white-space:nowrap;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;min-height:1.3em">


<span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">370</span>        <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">infos</span> <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)"><</span>< <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">camItemInfo</span>(<span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">index</span>(<span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">i</span>, <span style="color:rgb(63,78,222)">0</span>));</div>


<div style="white-space:nowrap;display:table;color:rgb(71,71,71);font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:16px"><div style="display:table-row"><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:table-cell;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace">   </span><div style="background-color:rgb(252,242,238);color:rgb(221,68,34);overflow:hidden;padding:2px 2px 2px 25px;white-space:normal;display:table-cell;border:1px solid transparent;background-image:none;background-repeat:no-repeat no-repeat">


<span style="font-weight:bold">loop_bottom:</span> <span>Bottom of the loop.</span></div></div></div><div style="line-height:16px;font-size:12px;white-space:nowrap;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;min-height:1.3em">


<span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">371</span>    }</div>


</div><div style="line-height:16px;font-size:12px;white-space:nowrap;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;min-height:1.3em">


<br></div><div style="line-height:16px;font-size:12px;white-space:nowrap;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;min-height:1.3em">


...</div><div style="line-height:16px;font-size:12px;white-space:nowrap;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;min-height:1.3em">


<br></div><div style="line-height:16px;font-size:12px;white-space:nowrap;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;min-height:1.3em">


<div style="min-height:1.3em"><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">352</span><span style="color:rgb(137,48,171)">void</span> <span style="background-color:rgb(34,119,187);color:white;border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">ImportFilterModel</span>::<span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">slotRowsInserted</span>(<span style="font-weight:bold">const</span> <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">QModelIndex</span>& <span style="color:rgb(83,91,94);font-style:italic">/*parent*/</span>, <span style="color:rgb(137,48,171)">int</span> <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">start</span>, <span style="color:rgb(137,48,171)">int</span> <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">end</span>)</div>


<div style="min-height:1.3em"><span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">353</span>{</div>


<div style="min-height:1.3em"><span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">354</span>    <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">QList</span><<span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">CamItemInfo</span>> <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">infos</span>;</div>


<div style="min-height:1.3em"><span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">355</span></div>


<div style="display:table;color:rgb(71,71,71);font-family:Arial,Helvetica,sans-serif"><div style="display:table-row"><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:table-cell;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace">   </span><div style="background-color:rgb(252,242,238);color:rgb(221,68,34);overflow:hidden;padding:2px 2px 2px 25px;white-space:normal;display:table-cell;border:1px solid transparent;background-image:none;background-repeat:no-repeat no-repeat">


<span style="font-weight:bold">non_progress_update:</span> <span>Update "i++" makes no progress toward falsifying the loop condition "i > end".</span></div></div></div><div style="display:table;color:rgb(71,71,71);font-family:Arial,Helvetica,sans-serif">


<div style="display:table-row"><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:table-cell;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace">   </span><div style="background-color:rgb(252,242,238);color:rgb(221,68,34);overflow:hidden;padding:2px 2px 2px 25px;white-space:normal;display:table-cell;border:1px solid rgb(125,154,170);background-image:url(http://scan5.coverity.com:8080/images/sourcebrowser/marker-code-main-event.png);background-repeat:no-repeat no-repeat">


<span style="display:block;margin-bottom:2px">CID 981139 (#1 of 1): Infinite loop (INFINITE_LOOP)</span><span style="font-weight:bold">loop_top:</span> <span>Top of the loop.</span></div></div></div>
<div style="display:table;color:rgb(71,71,71);font-family:Arial,Helvetica,sans-serif"><div style="display:table-row"><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:table-cell;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace">   </span><div style="background-color:rgb(252,242,238);color:rgb(221,68,34);overflow:hidden;padding:2px 2px 2px 25px;white-space:normal;display:table-cell;border:1px solid transparent;background-image:none;background-repeat:no-repeat no-repeat">


<span style="font-weight:bold">loop_condition:</span> <span>If "i > end" is initially true then it will remain true.</span></div></div></div><div style="min-height:1.3em">
<span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">356</span>    <span style="font-weight:bold">for</span> (<span style="color:rgb(137,48,171)">int</span> <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">i</span> = <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">start</span>; <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">i</span> > <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">end</span>; <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">i</span>++)</div>


<div style="min-height:1.3em"><span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">357</span>    {</div>


<div style="min-height:1.3em"><span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">358</span>        <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">infos</span> <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)"><</span>< <span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">camItemInfo</span>(<span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">index</span>(<span style="border-width:1px;border-style:solid;border-color:transparent transparent rgb(204,204,204)">i</span>, <span style="color:rgb(63,78,222)">0</span>));</div>


<div style="display:table;color:rgb(71,71,71);font-family:Arial,Helvetica,sans-serif"><div style="display:table-row"><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:table-cell;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace">   </span><div style="background-color:rgb(252,242,238);color:rgb(221,68,34);overflow:hidden;padding:2px 2px 2px 25px;white-space:normal;display:table-cell;border:1px solid transparent;background-image:none;background-repeat:no-repeat no-repeat">


<span style="font-weight:bold">loop_bottom:</span> <span>Bottom of the loop.</span></div></div></div><div style="min-height:1.3em"><span style="background-color:rgb(238,238,238);color:rgb(191,191,191);vertical-align:top;display:inline-block"></span><span style="background-color:rgb(238,238,238);color:rgb(153,153,153);padding-left:0.3em;padding-right:0.2em;margin-right:0.5em;display:inline-block">359</span>    }</div>

<span class="HOEnZb"><font color="#888888">
<div style="min-height:1.3em"><br></div><div style="min-height:1.3em">Gilles</div></font></span></div><div style="line-height:16px;font-size:12px;white-space:nowrap;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;min-height:1.3em">


<br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/13 Gilles Caulier <span dir="ltr"><<a href="mailto:caulier.gilles@gmail.com" target="_blank">caulier.gilles@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi all developers,<div><br></div><div>I registered digiKam to Coverity static analyse program dedicated for open-source project :</div><div><br></div><div><a href="http://scan.coverity.com/" target="_blank">http://scan.coverity.com/</a><br>



</div><div><div><a href="http://en.wikipedia.org/wiki/Coverity#Scan_.28Open_Source.29" target="_blank">http://en.wikipedia.org/wiki/Coverity#Scan_.28Open_Source.29</a><br></div><div><br></div></div><div>As you already see my previous mail about traces generated with this tool by Red Hat team, i step the stage to use Coverity as default static code analyzer to detect programming errors.</div>



<div><br></div><div>I compiled and submitted a first tarball to SCAN web interface (500Mb of db file), and 30mns later i receive a mail to said that analyse is ready to be read through Coverity Connect Manager.<br>
</div><div><br></div><div>Web interface is really nice to use and to parse important errors. It's really  more suitable than an export to text list as Red Hat sent me previously.<br></div><div><br></div>
<div>I recommend to all developers who want to improve source code to take an account to Coverity SCAN web interface.</div><div><br></div><div>To register you, please send me your information :</div><div>
<br></div><div>- user name</div><div>- email :</div><div>- given name</div><div>- family name</div><div><br></div><div>... in fact all information to field in this page : <a href="http://scan.coverity.com/create_user.html" target="_blank">http://scan.coverity.com/create_user.html</a></div>



<div><br></div><div>Later, when your account will be created, you will need to login to Connect Manager </div><div><br></div><div><div><a href="http://scan5.coverity.com:8080" target="_blank">scan5.coverity.com:8080</a><br>



</div><div><br></div><div>with your Username and a password sent to you in a private mail. You will be able to take a look to all trace generated by my scans loaded.</div><div><br></div><div>I plan to process scan upload to Coverity server automatically each week end using a script, as other main Open-Source projects do...</div>



<div><br></div><div>I waiting your info to process registration</div><div><br></div><div>Best</div><span><font color="#888888"><div><br></div><div>Gilles Caulier</div><div><br></div><div><br></div><div><br>
</div></font></span></div>
</div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>