New Defects reported by Coverity Scan for digiKam
scan-admin at coverity.com
scan-admin at coverity.com
Thu May 2 18:02:16 BST 2024
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.
5 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 1596734: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1596734: Null pointer dereferences (FORWARD_NULL)
/home/gilles/devel/GIT/8.x/core/libs/dngwriter/dngwriter_export.cpp: 115 in Digikam::DNGWriter::Private::exportTarget(Digikam::DNGWriterHost &, AutoPtr<dng_negative> &, AutoPtr<dng_image>&)()
109 }
110 else
111 {
112 dng_jpeg_preview* jpegPreview = dynamic_cast<dng_jpeg_preview*>(preview.Get());
113 int quality = (previewIndex == 0) ? 8 : 5;
114 dng_image_writer writer;
>>> CID 1596734: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "jpegPreview" to "EncodeJPEGPreview", which dereferences it.
115 writer.EncodeJPEGPreview(host, *previewImage, *jpegPreview, quality);
116 }
117
118 previewList.Append(preview);
119 }
120
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu4yJUfIaFVfulX1EnArvLvmGJ18AyhOhOJnWywYkUuR-2BHL458rbL5b5DiAzhSjilZ8-3D7gFX_wUwU8mg96yc-2FA1IAMQ6mJ-2FFdQ9EM-2BFY-2BXFbSpXNYnfxF75uhrM0xvwaJ7SlyhYMV8Ql-2BPeDRO1qX0QRIaFv-2BdWrGZAEyEupYvLdBxSArTjRs0EAbddMBXDNr5vz9-2BXJEetqxcmvmNELTeLPFuBIfjbVUOUCl1KCXwEeIdcEWnSjAIWxno9xhw189JDFWWE9-2BgDW-2BIyZ2LXsnwPc46zZUBA-3D-3D
More information about the Digikam-devel
mailing list