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

scan-admin at coverity.com scan-admin at coverity.com
Fri Jun 10 22:57:33 BST 2016


Hi,

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

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


** CID 1362661:  Error handling issues  (CHECKED_RETURN)
/home/gilles/Devel/5.x/extra/kipi-plugins/mediawiki/wmtalker.cpp: 145 in KIPIWikiMediaPlugin::WMTalker::uploadHandle(KJob *)()


________________________________________________________________________________________________________
*** CID 1362661:  Error handling issues  (CHECKED_RETURN)
/home/gilles/Devel/5.x/extra/kipi-plugins/mediawiki/wmtalker.cpp: 145 in KIPIWikiMediaPlugin::WMTalker::uploadHandle(KJob *)()
139             QMap<QString,QString> info = d->imageDesc.take(keys.first());
140             Upload* const e1           = new Upload(*d->mediawiki, this);
141     
142             qCDebug(KIPIPLUGINS_LOG) << "Path:" << keys.first();
143     
144             QFile* const file = new QFile(keys.first(),this);
>>>     CID 1362661:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "open" without checking return value (as is done elsewhere 74 out of 89 times).
145             file->open(QIODevice::ReadOnly);
146             //emit fileUploadProgress(done = 0, total file.size());
147     
148             e1->setFile(file);
149             d->currentFile = file->fileName();
150             qCDebug(KIPIPLUGINS_LOG) << "Name:" << file->fileName();


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/digikam?tab=overview

To manage Coverity Scan email notifications for "digikam-devel at kde.org", click https://scan.coverity.com/subscriptions/edit?email=digikam-devel%40kde.org&token=21cb92ead57ab0f49fa8806fad113bc4




More information about the Digikam-devel mailing list