New Defects reported by Coverity Scan for digiKam

scan-admin at coverity.com scan-admin at coverity.com
Sun Sep 27 17:40:28 BST 2020


Hi,

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

2 new defect(s) introduced to digiKam found with Coverity Scan.
6 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 2 of 2 defect(s)


** CID 1409690:    (TAINTED_SCALAR)
/mnt/devel/GIT/7.x/core/tests/facesengine/alignment/funnelreal.cpp: 248 in Digikam::FunnelReal::Private::loadTrainingData(const QString &)()
/mnt/devel/GIT/7.x/core/tests/facesengine/alignment/funnelreal.cpp: 261 in Digikam::FunnelReal::Private::loadTrainingData(const QString &)()
/mnt/devel/GIT/7.x/core/tests/facesengine/alignment/funnelreal.cpp: 250 in Digikam::FunnelReal::Private::loadTrainingData(const QString &)()


________________________________________________________________________________________________________
*** CID 1409690:    (TAINTED_SCALAR)
/mnt/devel/GIT/7.x/core/tests/facesengine/alignment/funnelreal.cpp: 248 in Digikam::FunnelReal::Private::loadTrainingData(const QString &)()
242             trainingInfo >> numFeatureClusters >> edgeDescDim;
243     
244             std::vector<float> cRow(edgeDescDim, 0);
245             centroids = std::vector<std::vector<float> >(numFeatureClusters, cRow);
246             sigmaSq   = std::vector<float>(numFeatureClusters);
247     
>>>     CID 1409690:    (TAINTED_SCALAR)
>>>     Using tainted variable "this->numFeatureClusters" as a loop boundary.
248             for (int i = 0 ; i < numFeatureClusters ; ++i)
249             {
250                 for (int j = 0 ; j < edgeDescDim ; ++j)
251                 {
252                     trainingInfo >> centroids[i][j];
253                 }
/mnt/devel/GIT/7.x/core/tests/facesengine/alignment/funnelreal.cpp: 261 in Digikam::FunnelReal::Private::loadTrainingData(const QString &)()
255                 trainingInfo >> sigmaSq[i];
256             }
257     
258             trainingInfo >> numRandPxls;
259             randPxls  = std::vector<std::pair<int, int> >(numRandPxls);
260     
>>>     CID 1409690:    (TAINTED_SCALAR)
>>>     Using tainted variable "this->numRandPxls" as a loop boundary.
261             for (int j = 0 ; j < numRandPxls ; ++j)
262             {
263                 trainingInfo >> randPxls[j].first >> randPxls[j].second;
264             }
265     
266             std::vector<float>               dfCol(numFeatureClusters, 0);
/mnt/devel/GIT/7.x/core/tests/facesengine/alignment/funnelreal.cpp: 250 in Digikam::FunnelReal::Private::loadTrainingData(const QString &)()
244             std::vector<float> cRow(edgeDescDim, 0);
245             centroids = std::vector<std::vector<float> >(numFeatureClusters, cRow);
246             sigmaSq   = std::vector<float>(numFeatureClusters);
247     
248             for (int i = 0 ; i < numFeatureClusters ; ++i)
249             {
>>>     CID 1409690:    (TAINTED_SCALAR)
>>>     Using tainted variable "this->edgeDescDim" as a loop boundary.
250                 for (int j = 0 ; j < edgeDescDim ; ++j)
251                 {
252                     trainingInfo >> centroids[i][j];
253                 }
254     
255                 trainingInfo >> sigmaSq[i];

** CID 1406231:  Error handling issues  (UNCAUGHT_EXCEPT)
/mnt/devel/GIT/7.x/core/app/main/main.cpp: 96 in main()


________________________________________________________________________________________________________
*** CID 1406231:  Error handling issues  (UNCAUGHT_EXCEPT)
/mnt/devel/GIT/7.x/core/app/main/main.cpp: 96 in main()
90     #   include <shellapi.h>
91     #   include <objbase.h>
92     #endif
93     
94     using namespace Digikam;
95     
>>>     CID 1406231:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     In function "main(int, char **)" an exception of type "std::invalid_argument" is thrown and never caught.
96     int main(int argc, char* argv[])
97     {
98         SystemSettings system(QLatin1String("digikam"));
99         system.readSettings();
100     
101         QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps,


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yp2OAl-2Fauo86CB28HCT0-2BnD-2F6eFMYt863B1-2B0FLvU5y-2FRWSl8rMA4vGwCkGPp0f1hg-3DNSVK_IpEMwFcbl-2BY9RHaL2m6a3nuAxB4hfm4MTniX0gHjADUKDKsEGeubNNl9rmZNwwPQ2uXmZe4cwmcJrUVf8YwEXUebQFLfN14l96erHSqVsEfrOjS3Vycjc2XHwtYHktdGHVNn-2Bkc-2BgEgG8wy3-2BEsAH5-2F68tF6lgxCURTbylKfv-2BpWHqraonsLKV-2FEJgq1sfrH9Kx4DwUh-2BmwqZpjP2BbYS7xnieUNSdMUtYwqyppAMXA-3D



More information about the Digikam-devel mailing list