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

scan-admin at coverity.com scan-admin at coverity.com
Sun Oct 19 19:03:03 BST 2014


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.
20 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 1248176:  Use after free  (USE_AFTER_FREE)
/mnt/devel/GIT/4.x/core/app/album/albumthumbnailloader.cpp: 200 in Digikam::AlbumThumbnailLoader::loadIcon(const QString &, int) const()


________________________________________________________________________________________________________
*** CID 1248176:  Use after free  (USE_AFTER_FREE)
/mnt/devel/GIT/4.x/core/app/album/albumthumbnailloader.cpp: 200 in Digikam::AlbumThumbnailLoader::loadIcon(const QString &, int) const()
194         {
195             KIconLoader* const iconLoader = KIconLoader::global();
196             pix                           = new QPixmap(iconLoader->loadIcon(name, KIconLoader::NoGroup, size));
197             d->iconCache.insert(qMakePair(name, size), pix);
198         }
199     
>>>     CID 1248176:  Use after free  (USE_AFTER_FREE)
>>>     Passing freed pointer "pix" as an argument to "QPixmap".
200         return *pix; // ownership of the pointer is kept by the icon cache
201     }
202     
203     bool AlbumThumbnailLoader::getTagThumbnail(TAlbum* const album, QPixmap& icon)
204     {
205         if (!album->icon().isEmpty() && d->iconSize > d->minBlendSize)


________________________________________________________________________________________________________
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






More information about the Digikam-devel mailing list