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 1211873: Uninitialized scalar variable (UNINIT) /mnt/devel/GIT/3.x/core/libs/dimg/filters/fx/oilpaintfilter.cpp: 105 in Digikam::OilPaintFilter::oilPaintImageMultithreaded(unsigned int, unsigned int)() ** CID 1211874: Uninitialized scalar variable (UNINIT) /mnt/devel/GIT/3.x/core/libs/dimg/filters/fx/oilpaintfilter.cpp: 104 in Digikam::OilPaintFilter::oilPaintImageMultithreaded(unsigned int, unsigned int)() ** CID 1211875: Uninitialized scalar variable (UNINIT) /mnt/devel/GIT/3.x/core/libs/dimg/filters/fx/oilpaintfilter.cpp: 103 in Digikam::OilPaintFilter::oilPaintImageMultithreaded(unsigned int, unsigned int)() ________________________________________________________________________________________________________ *** CID 1211873: Uninitialized scalar variable (UNINIT) /mnt/devel/GIT/3.x/core/libs/dimg/filters/fx/oilpaintfilter.cpp: 105 in Digikam::OilPaintFilter::oilPaintImageMultithreaded(unsigned int, unsigned int)() 99 */ 100 void OilPaintFilter::oilPaintImageMultithreaded(uint start, uint stop) 101 { 102 uchar* intensityCount = new uchar[d->smoothness + 1]; 103 uint* averageColorR = new uint[d->smoothness + 1]; 104 uint* averageColorG = new uint[d->smoothness + 1]; >>> CID 1211873: Uninitialized scalar variable (UNINIT) >>> Assigning: "averageColorB" = "new uint[this->d->smoothness + 1]", which is allocated but not initialized. 105 uint* averageColorB = new uint[d->smoothness + 1]; 106 107 int oldProgress=0, progress=0; 108 DColor mostFrequentColor; 109 110 mostFrequentColor.setSixteenBit(m_orgImage.sixteenBit()); ________________________________________________________________________________________________________ *** CID 1211874: Uninitialized scalar variable (UNINIT) /mnt/devel/GIT/3.x/core/libs/dimg/filters/fx/oilpaintfilter.cpp: 104 in Digikam::OilPaintFilter::oilPaintImageMultithreaded(unsigned int, unsigned int)() 98 * a matrix and simply write at the original position. 99 */ 100 void OilPaintFilter::oilPaintImageMultithreaded(uint start, uint stop) 101 { 102 uchar* intensityCount = new uchar[d->smoothness + 1]; 103 uint* averageColorR = new uint[d->smoothness + 1]; >>> CID 1211874: Uninitialized scalar variable (UNINIT) >>> Assigning: "averageColorG" = "new uint[this->d->smoothness + 1]", which is allocated but not initialized. 104 uint* averageColorG = new uint[d->smoothness + 1]; 105 uint* averageColorB = new uint[d->smoothness + 1]; 106 107 int oldProgress=0, progress=0; 108 DColor mostFrequentColor; 109 ________________________________________________________________________________________________________ *** CID 1211875: Uninitialized scalar variable (UNINIT) /mnt/devel/GIT/3.x/core/libs/dimg/filters/fx/oilpaintfilter.cpp: 103 in Digikam::OilPaintFilter::oilPaintImageMultithreaded(unsigned int, unsigned int)() 97 * Theory: Using MostFrequentColor function we take the main color in 98 * a matrix and simply write at the original position. 99 */ 100 void OilPaintFilter::oilPaintImageMultithreaded(uint start, uint stop) 101 { 102 uchar* intensityCount = new uchar[d->smoothness + 1]; >>> CID 1211875: Uninitialized scalar variable (UNINIT) >>> Assigning: "averageColorR" = "new uint[this->d->smoothness + 1]", which is allocated but not initialized. 103 uint* averageColorR = new uint[d->smoothness + 1]; 104 uint* averageColorG = new uint[d->smoothness + 1]; 105 uint* averageColorB = new uint[d->smoothness + 1]; 106 107 int oldProgress=0, progress=0; 108 DColor mostFrequentColor; ________________________________________________________________________________________________________ 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 _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Free forum by Nabble | Edit this page |