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

scan-admin at coverity.com scan-admin at coverity.com
Tue Sep 1 02:07:45 BST 2015


Hi,

Please find the latest report on new defect(s) introduced to digiKam found with Coverity Scan.

2 new defect(s) introduced to digiKam found with Coverity Scan.
11 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 2 of 2 defect(s)


** CID 1321637:  Null pointer dereferences  (REVERSE_INULL)
/home/gilles/Devel/5.x/core/app/dragdrop/albumdragdrop.cpp: 426 in Digikam::AlbumDragDropHandler::createMimeData(const QList<Digikam::Album *> &)()


________________________________________________________________________________________________________
*** CID 1321637:  Null pointer dereferences  (REVERSE_INULL)
/home/gilles/Devel/5.x/core/app/dragdrop/albumdragdrop.cpp: 426 in Digikam::AlbumDragDropHandler::createMimeData(const QList<Digikam::Album *> &)()
420         if (palbum->isRoot() || palbum->isTrashAlbum())
421         {
422             return 0;
423         }
424     
425         return (new DAlbumDrag(albums.first()->databaseUrl(), albums.first()->id(),
>>>     CID 1321637:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "palbum" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
426                               palbum ? palbum->fileUrl() : QUrl()));
427     }
428     

** CID 1321636:  Null pointer dereferences  (FORWARD_NULL)
/home/gilles/Devel/5.x/core/app/dragdrop/albumdragdrop.cpp: 417 in Digikam::AlbumDragDropHandler::createMimeData(const QList<Digikam::Album *> &)()


________________________________________________________________________________________________________
*** CID 1321636:  Null pointer dereferences  (FORWARD_NULL)
/home/gilles/Devel/5.x/core/app/dragdrop/albumdragdrop.cpp: 417 in Digikam::AlbumDragDropHandler::createMimeData(const QList<Digikam::Album *> &)()
411     
412         if (albums.size() > 1)
413         {
414             qCWarning(DIGIKAM_GENERAL_LOG) << "Dragging multiple albums is not implemented";
415         }
416     
>>>     CID 1321636:  Null pointer dereferences  (FORWARD_NULL)
>>>     Assigning: "palbum" = "dynamic_cast <Digikam::PAlbum *>(albums->first())".
417         PAlbum* const palbum = dynamic_cast<PAlbum*>(albums.first());
418     
419         // Root and Trash Albums are not dragable
420         if (palbum->isRoot() || palbum->isTrashAlbum())
421         {
422             return 0;


________________________________________________________________________________________________________
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