<div dir="ltr">Hi all.<div><br></div><div>I setup Coverity SCAN to send automatically a mail to digiKam-devel and kde-imaging ML when parsing is complete.</div><div><br></div><div>The new scan done this morning has included :</div>
<div><br></div><div>- digiKam code from "tableview" currently written by Michael G Hansen (3 minor reports).</div><div>- libkface from "opentld" branches currently written by Mahesh Hegde (31 issues from OpenTLD implementation).</div>
<div><br></div><div>All others components are taken from git/master</div><div><br></div><div style>Best</div><div style><br></div><div style>Gilles Caulier</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/2 <span dir="ltr"><<a href="mailto:scan-admin@coverity.com" target="_blank">scan-admin@coverity.com</a>></span><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>
Showing 7 of 34 defects<br>
<br>
** CID 989146: Uninitialized scalar field (UNINIT_CTOR)<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/tldinterface/tldface.cpp: 43<br>
<a href="http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989146" target="_blank">http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989146</a><br>
<br>
** CID 989145: Uninitialized scalar field (UNINIT_CTOR)<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/opentld/main/Settings.cpp: 54<br>
<a href="http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989145" target="_blank">http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989145</a><br>
<br>
** CID 989144: Uninitialized pointer field (UNINIT_CTOR)<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/VarianceFilter.cpp: 43<br>
<a href="http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989144" target="_blank">http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989144</a><br>
<br>
** CID 989143: Uninitialized scalar field (UNINIT_CTOR)<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/TLD.cpp: 55<br>
<a href="http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989143" target="_blank">http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989143</a><br>
<br>
** CID 989142: Uninitialized pointer field (UNINIT_CTOR)<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/NNClassifier.cpp: 45<br>
<a href="http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989142" target="_blank">http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989142</a><br>
<br>
** CID 989141: Uninitialized scalar field (UNINIT_CTOR)<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/IntegralImage.h: 47<br>
<a href="http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989141" target="_blank">http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989141</a><br>
<br>
** CID 989140: Uninitialized pointer field (UNINIT_CTOR)<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/ForegroundDetector.cpp: 39<br>
<a href="http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989140" target="_blank">http://scan5.coverity.com:8080//sourcebrowser.htm?projectId=10358#mergedDefectId=989140</a><br>
<br>
<br>
________________________________________________________________________<br>
CID 989146: Uninitialized scalar field (UNINIT_CTOR)<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/tldinterface/tldface.h: 71 ( member_decl)<br>
68 QString serialisedLeaves;<br>
69 QString Name;<br>
70<br>
>>> Class member declaration for "faceid".<br>
71 int faceid;<br>
72 int objHeight;<br>
73 int objWidth;<br>
74<br>
75 float minVar;<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/tldinterface/tldface.cpp: 43 ( uninit_member)<br>
40<br>
41 unitFaceModel::unitFaceModel()<br>
42 {<br>
>>> Non-static class member "faceid" is not initialized in this constructor nor in any functions that it calls.<br>
43 }<br>
44<br>
45 unitFaceModel::~unitFaceModel()<br>
46 {<br>
47 }<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/tldinterface/tldface.h: 72 ( member_decl)<br>
69 QString Name;<br>
70<br>
71 int faceid;<br>
>>> Class member declaration for "objHeight".<br>
72 int objHeight;<br>
73 int objWidth;<br>
74<br>
75 float minVar;<br>
76 };<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/tldinterface/tldface.cpp: 43 ( uninit_member)<br>
40<br>
41 unitFaceModel::unitFaceModel()<br>
42 {<br>
>>> Non-static class member "objHeight" is not initialized in this constructor nor in any functions that it calls.<br>
43 }<br>
44<br>
45 unitFaceModel::~unitFaceModel()<br>
46 {<br>
47 }<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/tldinterface/tldface.h: 73 ( member_decl)<br>
70<br>
71 int faceid;<br>
72 int objHeight;<br>
>>> Class member declaration for "objWidth".<br>
73 int objWidth;<br>
74<br>
75 float minVar;<br>
76 };<br>
77<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/tldinterface/tldface.cpp: 43 ( uninit_member)<br>
40<br>
41 unitFaceModel::unitFaceModel()<br>
42 {<br>
>>> Non-static class member "objWidth" is not initialized in this constructor nor in any functions that it calls.<br>
43 }<br>
44<br>
45 unitFaceModel::~unitFaceModel()<br>
46 {<br>
47 }<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/tldinterface/tldface.h: 75 ( member_decl)<br>
72 int objHeight;<br>
73 int objWidth;<br>
74<br>
>>> Class member declaration for "minVar".<br>
75 float minVar;<br>
76 };<br>
77<br>
78 } // namespace libface<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/tldinterface/tldface.cpp: 43 ( uninit_member)<br>
40<br>
41 unitFaceModel::unitFaceModel()<br>
42 {<br>
>>> CID 989146: Uninitialized scalar field (UNINIT_CTOR)<br>
>>> Non-static class member "minVar" is not initialized in this constructor nor in any functions that it calls.<br>
43 }<br>
44<br>
45 unitFaceModel::~unitFaceModel()<br>
46 {<br>
47 }<br>
<br>
________________________________________________________________________<br>
CID 989145: Uninitialized scalar field (UNINIT_CTOR)<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/opentld/main/Settings.h: 49 ( member_decl)<br>
46 bool m_alternating; //!< if set to true, detector is disabled while tracker is running.<br>
47 bool m_exportModelAfterRun; //!< if set to true, model is exported after run.<br>
48 int m_trajectory; //!< specifies the number of the last frames which are considered by the trajectory; 0 disables the trajectory<br>
>>> Class member declaration for "m_method".<br>
49 int m_method; //!< method of capturing: IMACQ_CAM, IMACQ_IMGS or IMACQ_VID<br>
50 int m_startFrame; //!< first frame of capturing<br>
51 int m_lastFrame; //!< last frame of caputing; 0 means take all frames<br>
52 int m_minScale; //!< number of scales smaller than initial object size<br>
53 int m_maxScale; //!< number of scales larger than initial object size<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/opentld/main/Settings.cpp: 54 ( uninit_member)<br>
51 m_proportionalShift(0.1),<br>
52 m_initialBoundingBox(vector<int>())<br>
53 {<br>
>>> CID 989145: Uninitialized scalar field (UNINIT_CTOR)<br>
>>> Non-static class member "m_method" is not initialized in this constructor nor in any functions that it calls.<br>
54 }<br>
55<br>
56 Settings::~Settings()<br>
57 {<br>
58 }<br>
<br>
________________________________________________________________________<br>
CID 989144: Uninitialized pointer field (UNINIT_CTOR)<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/VarianceFilter.h: 44 ( member_decl)<br>
41<br>
42 public:<br>
43 bool enabled;<br>
>>> Class member declaration for "windowOffsets".<br>
44 int *windowOffsets;<br>
45<br>
46 DetectionResult *detectionResult;<br>
47<br>
48 float minVar;<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/VarianceFilter.cpp: 43 ( uninit_member)<br>
40 minVar = 0;<br>
41 integralImg = NULL;<br>
42 integralImg_squared = NULL;<br>
>>> Non-static class member "windowOffsets" is not initialized in this constructor nor in any functions that it calls.<br>
43 }<br>
44<br>
45 VarianceFilter::~VarianceFilter()<br>
46 {<br>
47 release();<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/VarianceFilter.h: 46 ( member_decl)<br>
43 bool enabled;<br>
44 int *windowOffsets;<br>
45<br>
>>> Class member declaration for "detectionResult".<br>
46 DetectionResult *detectionResult;<br>
47<br>
48 float minVar;<br>
49<br>
50 VarianceFilter();<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/VarianceFilter.cpp: 43 ( uninit_member)<br>
40 minVar = 0;<br>
41 integralImg = NULL;<br>
42 integralImg_squared = NULL;<br>
>>> CID 989144: Uninitialized pointer field (UNINIT_CTOR)<br>
>>> Non-static class member "detectionResult" is not initialized in this constructor nor in any functions that it calls.<br>
43 }<br>
44<br>
45 VarianceFilter::~VarianceFilter()<br>
46 {<br>
47 release();<br>
<br>
________________________________________________________________________<br>
CID 989143: Uninitialized scalar field (UNINIT_CTOR)<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/TLD.h: 62 ( member_decl)<br>
59 cv::Mat currImg;<br>
60 cv::Rect *prevBB;<br>
61 cv::Rect *currBB;<br>
>>> Class member declaration for "currConf".<br>
62 float currConf;<br>
63 bool learning;<br>
64<br>
65 TLD();<br>
66 virtual ~TLD();<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/TLD.cpp: 55 ( uninit_member)<br>
52 nnClassifier = detectorCascade->nnClassifier;<br>
53<br>
54 medianFlowTracker = new MedianFlowTracker();<br>
>>> CID 989143: Uninitialized scalar field (UNINIT_CTOR)<br>
>>> Non-static class member "currConf" is not initialized in this constructor nor in any functions that it calls.<br>
55 }<br>
56<br>
57 TLD::~TLD()<br>
58 {<br>
59 storeCurrentData();<br>
<br>
________________________________________________________________________<br>
CID 989142: Uninitialized pointer field (UNINIT_CTOR)<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/NNClassifier.h: 43 ( member_decl)<br>
40 {<br>
41 float ncc(float *f1, float *f2);<br>
42 public:<br>
>>> Class member declaration for "enabled".<br>
43 bool enabled;<br>
44<br>
45 int *windows;<br>
46 float thetaFP;<br>
47 float thetaTP;<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/NNClassifier.cpp: 45 ( uninit_member)<br>
42 truePositives = new vector<NormalizedPatch>();<br>
43 falsePositives = new vector<NormalizedPatch>();<br>
44<br>
>>> Non-static class member "enabled" is not initialized in this constructor nor in any functions that it calls.<br>
45 }<br>
46<br>
47 NNClassifier::~NNClassifier()<br>
48 {<br>
49 release();<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/NNClassifier.h: 45 ( member_decl)<br>
42 public:<br>
43 bool enabled;<br>
44<br>
>>> Class member declaration for "windows".<br>
45 int *windows;<br>
46 float thetaFP;<br>
47 float thetaTP;<br>
48 DetectionResult *detectionResult;<br>
49 std::vector<NormalizedPatch>* falsePositives;<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/NNClassifier.cpp: 45 ( uninit_member)<br>
42 truePositives = new vector<NormalizedPatch>();<br>
43 falsePositives = new vector<NormalizedPatch>();<br>
44<br>
>>> Non-static class member "windows" is not initialized in this constructor nor in any functions that it calls.<br>
45 }<br>
46<br>
47 NNClassifier::~NNClassifier()<br>
48 {<br>
49 release();<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/NNClassifier.h: 48 ( member_decl)<br>
45 int *windows;<br>
46 float thetaFP;<br>
47 float thetaTP;<br>
>>> Class member declaration for "detectionResult".<br>
48 DetectionResult *detectionResult;<br>
49 std::vector<NormalizedPatch>* falsePositives;<br>
50 std::vector<NormalizedPatch>* truePositives;<br>
51<br>
52 NNClassifier();<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/NNClassifier.cpp: 45 ( uninit_member)<br>
42 truePositives = new vector<NormalizedPatch>();<br>
43 falsePositives = new vector<NormalizedPatch>();<br>
44<br>
>>> CID 989142: Uninitialized pointer field (UNINIT_CTOR)<br>
>>> Non-static class member "detectionResult" is not initialized in this constructor nor in any functions that it calls.<br>
45 }<br>
46<br>
47 NNClassifier::~NNClassifier()<br>
48 {<br>
49 release();<br>
<br>
________________________________________________________________________<br>
CID 989141: Uninitialized scalar field (UNINIT_CTOR)<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/IntegralImage.h: 41 ( member_decl)<br>
38 public:<br>
39 T *data; /* Array containg the entries for the integral image in row-first manner. Of size width*height. Allocated by tldAllocIntImg */<br>
40 /* width, height: Dimensions of integral image.*/<br>
>>> Class member declaration for "width".<br>
41 int width;<br>
42 int height;<br>
43<br>
44 IntegralImage(cv::Size size)<br>
45 {<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/IntegralImage.h: 47 ( uninit_member)<br>
44 IntegralImage(cv::Size size)<br>
45 {<br>
46 data = new T[size.width * size.height];<br>
>>> Non-static class member "width" is not initialized in this constructor nor in any functions that it calls.<br>
47 }<br>
48<br>
49 virtual ~IntegralImage()<br>
50 {<br>
51 delete[] data;<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/IntegralImage.h: 42 ( member_decl)<br>
39 T *data; /* Array containg the entries for the integral image in row-first manner. Of size width*height. Allocated by tldAllocIntImg */<br>
40 /* width, height: Dimensions of integral image.*/<br>
41 int width;<br>
>>> Class member declaration for "height".<br>
42 int height;<br>
43<br>
44 IntegralImage(cv::Size size)<br>
45 {<br>
46 data = new T[size.width * size.height];<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/IntegralImage.h: 47 ( uninit_member)<br>
44 IntegralImage(cv::Size size)<br>
45 {<br>
46 data = new T[size.width * size.height];<br>
>>> CID 989141: Uninitialized scalar field (UNINIT_CTOR)<br>
>>> Non-static class member "height" is not initialized in this constructor nor in any functions that it calls.<br>
47 }<br>
48<br>
49 virtual ~IntegralImage()<br>
50 {<br>
51 delete[] data;<br>
<br>
________________________________________________________________________<br>
CID 989140: Uninitialized pointer field (UNINIT_CTOR)<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/ForegroundDetector.h: 45 ( member_decl)<br>
42 int fgThreshold;<br>
43 int minBlobSize;<br>
44 cv::Mat bgImg;<br>
>>> Class member declaration for "detectionResult".<br>
45 DetectionResult *detectionResult;<br>
46<br>
47 ForegroundDetector();<br>
48 virtual ~ForegroundDetector();<br>
49 void release();<br>
<br>
<br>
/mnt/devel/GIT/3.x/extra/libkface/OpenTLD/src/libopentld/tld/ForegroundDetector.cpp: 39 ( uninit_member)<br>
36 {<br>
37 fgThreshold = 16;<br>
38 minBlobSize = 0;<br>
>>> CID 989140: Uninitialized pointer field (UNINIT_CTOR)<br>
>>> Non-static class member "detectionResult" is not initialized in this constructor nor in any functions that it calls.<br>
39 }<br>
40<br>
41 ForegroundDetector::~ForegroundDetector()<br>
42 {<br>
43 }<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></div>