[Digikam-devel] New Defects reported by Coverity Scan for digiKam

scan-admin at coverity.com scan-admin at coverity.com
Sun Feb 23 17:44:08 GMT 2014


Hi,


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

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


** CID 1186583:  Unchecked return value  (CHECKED_RETURN)
/mnt/devel/GIT/3.x/core/databaseserver/databaseserver.cpp: 487 in Digikam::DatabaseServer::stopDatabaseProcess()()

** CID 981303:  Uninitialized scalar field  (UNINIT_CTOR)
/mnt/devel/GIT/3.x/core/tests/searchtextbartest.h: 53 in SearchTextBarTest::SearchTextBarTest()()

** CID 1146959:  Resource leak  (RESOURCE_LEAK)
/mnt/devel/GIT/3.x/core/showfoto/main/showfotosettings.cpp: 180 in ShowFoto::[unnamed type]::operator ->()()


________________________________________________________________________________________________________
*** CID 1186583:  Unchecked return value  (CHECKED_RETURN)
/mnt/devel/GIT/3.x/core/databaseserver/databaseserver.cpp: 487 in Digikam::DatabaseServer::stopDatabaseProcess()()
481         if ( !d->databaseProcess )
482         {
483             return;
484         }
485     
486         d->databaseProcess->terminate();
>>>     CID 1186583:  Unchecked return value  (CHECKED_RETURN)
>>>     No check of the return value of "this->d->databaseProcess->waitForFinished(30000)".
487         d->databaseProcess->waitForFinished();
488         d->databaseProcess->~QProcess();
489         d->databaseProcess = 0;
490         d->pollThread->stop = true;
491         d->pollThread->wait();
492         d->app->exit(0);

________________________________________________________________________________________________________
*** CID 981303:  Uninitialized scalar field  (UNINIT_CTOR)
/mnt/devel/GIT/3.x/core/tests/searchtextbartest.h: 53 in SearchTextBarTest::SearchTextBarTest()()
47     
48         void newSearchTextSettings(const SearchTextSettings& settings);
49     
50     private:
51     
52         SearchTextSettings lastSearchTextSettings;
>>>     CID 981303:  Uninitialized scalar field  (UNINIT_CTOR)
>>>     The compiler-generated constructor for this class does not initialize "callCount".
53         int                callCount;
54     };
55     

________________________________________________________________________________________________________
*** CID 1146959:  Resource leak  (RESOURCE_LEAK)
/mnt/devel/GIT/3.x/core/showfoto/main/showfotosettings.cpp: 180 in ShowFoto::[unnamed type]::operator ->()()
174     {
175     public:
176     
177         ShowfotoSettings object;
178     };
179     
>>>     CID 1146959:  Resource leak  (RESOURCE_LEAK)
>>>     Variable "x" going out of scope leaks the storage it points to.
180     K_GLOBAL_STATIC(ShowfotoSettingsCreator, creator)
181     
182     // -------------------------------------------------------------------------------------------------
183     
184     ShowfotoSettings* ShowfotoSettings::instance()
185     {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, http://scan.coverity.com/projects/285?tab=Overview

To unsubscribe from the email notification for new defects, http://scan5.coverity.com/cgi-bin/unsubscribe.py






More information about the Digikam-devel mailing list