New Defects reported by Coverity Scan for digiKam

scan-admin at coverity.com scan-admin at coverity.com
Thu May 21 19:24:47 BST 2020


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 1463594:  Possible Control flow issues  (DEADCODE)
/mnt/devel/GIT/7.x/core/dplugins/dimg/heif/dimgheifloader_load.cpp: 116 in Digikam::DImgHEIFLoader::load(const QString &, Digikam::DImgLoaderObserver *)()


________________________________________________________________________________________________________
*** CID 1463594:  Possible Control flow issues  (DEADCODE)
/mnt/devel/GIT/7.x/core/dplugins/dimg/heif/dimgheifloader_load.cpp: 116 in Digikam::DImgHEIFLoader::load(const QString &, Digikam::DImgLoaderObserver *)()
110     
111         struct heif_context* const heif_context = heif_context_alloc();
112         struct heif_error error;
113     
114         if (loadToMemory)
115         {
>>>     CID 1463594:  Possible Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "buffer.QByteArray();".
116             QByteArray buffer;
117             QFile memFile(filePath);
118     
119             if (!memFile.open(QIODevice::ReadOnly))
120             {
121                 qWarning() << "Error: Could not load into memory.";


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/ls/click?upn=nJaKvJSIH-2FPAfmty-2BK5tYpPklAc1eEA-2F1zfUjH6teExFxByfkNnczn62-2Fi7fqgWZX-2BbNxhtyL5c9g-2BPgAq7MT77OPXJ5d6pc1EDZ78vhX68-3DW6gU_IpEMwFcbl-2BY9RHaL2m6a3nuAxB4hfm4MTniX0gHjADV3-2FC6HPtgrZ7TRDetw52qpGvjTGdaPKBF7IyWO-2BT9ZDm2CYoC5OXryLP9aTzaxU62iqFuC2v9wmi1fQHzHtSRACbfK7Bbu-2F9A4iTadgVX5iTE26WP-2FLa4vkkCu7I3-2BNy1CqbXEq2Grdimng1tLJvKihCDYchy4bt9ndWp5sHgJVg-3D-3D



More information about the Digikam-devel mailing list