New Defects reported by Coverity Scan for digiKam

scan-admin at coverity.com scan-admin at coverity.com
Sat Aug 27 23:40:27 BST 2016


Hi,

Please find the latest report on new defect(s) introduced to digiKam found with Coverity Scan.

3 new defect(s) introduced to digiKam found with Coverity Scan.
19 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 3 of 3 defect(s)


** CID 1372276:  Resource leaks  (RESOURCE_LEAK)
/home/gilles/Devel/5.x/core/libs/facesengine/redeye/redeyecorrectionfilter.cpp: 154 in Digikam::RedEyeCorrectionFilter::filterImage()()


________________________________________________________________________________________________________
*** CID 1372276:  Resource leaks  (RESOURCE_LEAK)
/home/gilles/Devel/5.x/core/libs/facesengine/redeye/redeyecorrectionfilter.cpp: 154 in Digikam::RedEyeCorrectionFilter::filterImage()()
148             {
149                 QDataStream dataStream(&model);
150                 dataStream.setFloatingPointPrecision(QDataStream::SinglePrecision);
151                 dataStream>>*temp;
152                 d->sp = temp;
153             }
>>>     CID 1372276:  Resource leaks  (RESOURCE_LEAK)
>>>     Variable "temp" going out of scope leaks the storage it points to.
154         }
155     
156     
157         cv::Mat intermediateImage;
158     
159         // Todo: convert dImg to Opencv::Mat directly

** CID 1372275:  Null pointer dereferences  (FORWARD_NULL)
/home/gilles/Devel/5.x/core/libs/facesengine/shape-predictor/matrixoperations.h: 67 in Digikam::pinv(const std::vector<std::vector<float, std::allocator<float>>, std::allocator<std::vector<float, std::allocator<float>>>> &)()


________________________________________________________________________________________________________
*** CID 1372275:  Null pointer dereferences  (FORWARD_NULL)
/home/gilles/Devel/5.x/core/libs/facesengine/shape-predictor/matrixoperations.h: 67 in Digikam::pinv(const std::vector<std::vector<float, std::allocator<float>>, std::allocator<std::vector<float, std::allocator<float>>>> &)()
61         cv::Mat A(mat.size()   , mat[0].size(), CV_32FC1);
62     
63         for (unsigned int i = 0 ; i < mat.size() ; i++)
64         {
65             for (unsigned int j =0 ; j < mat[0].size() ; j++)
66             {
>>>     CID 1372275:  Null pointer dereferences  (FORWARD_NULL)
>>>     Dereferencing null pointer "A.at(i, j)".
67                 A.at<float>(i, j) = mat[i][j];
68             }
69         }
70     
71         cv::invert(A, B, cv::DECOMP_SVD);
72     

** CID 1372274:  Null pointer dereferences  (FORWARD_NULL)
/home/gilles/Devel/5.x/core/libs/facesengine/redeye/redeyecorrectionfilter.cpp: 185 in Digikam::RedEyeCorrectionFilter::filterImage()()


________________________________________________________________________________________________________
*** CID 1372274:  Null pointer dereferences  (FORWARD_NULL)
/home/gilles/Devel/5.x/core/libs/facesengine/redeye/redeyecorrectionfilter.cpp: 185 in Digikam::RedEyeCorrectionFilter::filterImage()()
179         if (type == CV_16UC3 || type == CV_16UC4)
180         {
181             gray.convertTo(gray,CV_8UC1,1/255.0);
182         }
183     
184         QList<QRectF> qrectfdets   = d->facedetector.detectFaces(temp);
>>>     CID 1372274:  Null pointer dereferences  (FORWARD_NULL)
>>>     Dereferencing null pointer "Digikam::RedEyeCorrectionFilter::Private::sp".
185         redeye::shapepredictor& sp = *(d->sp);
186     
187         if (runningFlag() && (qrectfdets.size() != 0))
188         {
189             std::vector<cv::Rect> dets;
190             QList<QRect> qrectdets = FacesEngine::FaceDetector::toAbsoluteRects(qrectfdets,temp.size());


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZIlZa20oQ0xtvekoaSXYBwgZYh7yqZ4T857KvBwnvzEg-3D-3D_Vulo-2FzB1zz6bqp-2F-2Bl-2FpBD-2BzKk1Nu56XtBupWJitvnTCortq-2FB2LUxADGgrrMHXrLXMxthQXvbPkRdt5I7G7fM-2BFKFRVPtyJwN-2BOyB7gdx5z36mYrPKteig5-2FEyZi1N3pjpGfsqDAboO1qohYxghhVZ-2Bi6Y30N3mTO5Ai7pmXeIbZ-2BsDJ9mye9fkN6dLnoxPyMWqxV8-2FNsP50BQAQmlyszg-3D-3D

To manage Coverity Scan email notifications for "digikam-devel at kde.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4g-2BkTwi3e7HlDkvMAkUMj2-2FFhZ2O-2BELTTy-2Fl1ea1gxKqmntchu8-2BeAOkExRtki0102MqL9th0o1rOws5-2F-2FQDFdjkpeJaB-2FdUMxPk-2B7ZQUGV0-3D_Vulo-2FzB1zz6bqp-2F-2Bl-2FpBD-2BzKk1Nu56XtBupWJitvnTCortq-2FB2LUxADGgrrMHXrLMYFsgy8-2F0Q-2BSQJnGzHitJ7XKeYRVI8sjW-2F73RXfiqthI6pC4bRYQVkch8x0-2B9XWOwxJQDUG-2F2Cn8OdKVH76haeF1EII0Wj6T9Qee64Ajc7Ea4TDXL37ejonoCKZHrrTdws1fr6puLVI0oEsUzM5D3Q-3D-3D




More information about the Digikam-devel mailing list