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

scan-admin at coverity.com scan-admin at coverity.com
Wed Jun 1 19:58:51 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.
8 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 1362470:  Error handling issues  (CHECKED_RETURN)
/home/gilles/Devel/5.x/extra/kipi-plugins/mediawiki/wmwindow.cpp: 280 in KIPIWikiMediaPlugin::WMWindow::prepareImageForUpload(const QString &)()


________________________________________________________________________________________________________
*** CID 1362470:  Error handling issues  (CHECKED_RETURN)
/home/gilles/Devel/5.x/extra/kipi-plugins/mediawiki/wmwindow.cpp: 280 in KIPIWikiMediaPlugin::WMWindow::prepareImageForUpload(const QString &)()
274             qCDebug(KIPIPLUGINS_LOG) << "Saving to temp file: " << d->tmpPath;
275             image.save(d->tmpPath, "JPEG", d->widget->quality());
276         }
277         else
278         {
279             // file is copied with its embedded metadata
>>>     CID 1362470:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "copy" without checking return value (as is done elsewhere 4 out of 5 times).
280             QFile::copy(imgPath, d->tmpPath);
281         }
282     
283         if (iface())
284         {
285             // NOTE : In case of metadata are saved to tmp file, we will override MetadataProcessor settings from KIPI host


________________________________________________________________________________________________________
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=621bfe7450f4a870432a2a9c106aa3a8




More information about the Digikam-devel mailing list