Hi,<br><br>The patch file is added. I added a few lines to initialize the array before using it.<br><br clear="all"><div>-----------------------------------------------------------------<br>Sayantan Datta<br>Junior Year<br>
National Institute of Technology, Durgapur<br>Phone : (+91) 9564370661<br>IRC : kenzo450D on #fedora, #nitdgplug, #kde<br></div>
<br><br><div class="gmail_quote">On Sat, Apr 6, 2013 at 5:25 PM, <span dir="ltr"><<a href="mailto:scan-admin@coverity.com" target="_blank">scan-admin@coverity.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi,<br>
<br>
Please find the latest report on new defect(s) introduced to digiKam found with Coverity SCAN<br>
<br>
Defect(s) Reported-by: Coverity Scan<br>
<br>
<br>
** CID 997051: Uninitialized scalar variable (UNINIT)<br>
/mnt/devel/GIT/3.x/core/libs/dimg/filters/transform/autocrop.cpp: 878<br>
<a href="http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=997051" target="_blank">http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=997051</a><br>
<br>
<br>
________________________________________________________________________<br>
CID 997051: Uninitialized scalar variable (UNINIT)<br>
<br>
/mnt/devel/GIT/3.x/core/libs/dimg/filters/transform/autocrop.cpp: 842 ( var_decl)<br>
839 // --- Step 2 -- Search between local minima<br>
840 kDebug() << "In local minima function";<br>
841 //We need to find the maxima between the first two local minima from either side<br>
>>> Declaring variable "blackpointCount" without initializer.<br>
842 int blackpointCount[threshold.width()];<br>
843 int leftminima = 0;<br>
844 int rightminima = (threshold.width()-1);<br>
845 int topCropLine = 0;<br>
846 int bottomCropLine = threshold.height()-1;<br>
<br>
<br>
/mnt/devel/GIT/3.x/core/libs/dimg/filters/transform/autocrop.cpp: 878 ( uninit_use)<br>
875<br>
876 for(j=1;j<threshold.width();j++)<br>
877 {<br>
>>> CID 997051: Uninitialized scalar variable (UNINIT)<br>
>>> Using uninitialized value "blackpointCount[j]".<br>
878 if((blackpointCount[j]>blackpointCount[j-1]) && (blackpointCount[j]<(0.2*threshold.height())))<br>
879 {<br>
880 leftminima = j-1;<br>
881 break;<br>
882 }<br>
<br>
________________________________________________________________________<br>
To view the defects in Coverity Scan visit, <a href="http://scan5.coverity.com:8080" target="_blank">http://scan5.coverity.com:8080</a><br>
<br>
If you don't have a username, you can request one by emailing: <a href="mailto:scan-admin@coverity.com">scan-admin@coverity.com</a><br>
<br>
To unsubscribe from the email notification for new defects, <a href="http://scan.coverity.com/email_unsubscribe.html" target="_blank">http://scan.coverity.com/email_unsubscribe.html</a><br>
If you are project owner, you can subscribe your team member by accessing <a href="http://scan.coverity.com/email_subscription.html" target="_blank">http://scan.coverity.com/email_subscription.html</a><br>
_______________________________________________<br>
Digikam-devel mailing list<br>
<a href="mailto:Digikam-devel@kde.org">Digikam-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-devel" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-devel</a><br>
</blockquote></div><br>