[umbrello-devel] Fwd: New Defects reported by Coverity Scan for Umbrello UML Modeller
Ralf Habacker
ralf.habacker at freenet.de
Wed Apr 8 08:27:12 UTC 2015
-------- Weitergeleitete Nachricht --------
Betreff: New Defects reported by Coverity Scan for Umbrello UML Modeller
Datum: Tue, 07 Apr 2015 22:19:13 -0700
Von: scan-admin at coverity.com
Hi,
Please find the latest report on new defect(s) introduced to Umbrello UML Modeller found with Coverity Scan.
2 new defect(s) introduced to Umbrello UML Modeller found with Coverity Scan.
27 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 89256: Null pointer dereferences (FORWARD_NULL)
/home/umbrello/src/umbrello/umbrello/dialogs/pages/classifierlistpage.cpp: 774 in ClassifierListPage::addClassifier(UMLClassifierListItem *, int)()
________________________________________________________________________________________________________
*** CID 89256: Null pointer dereferences (FORWARD_NULL)
/home/umbrello/src/umbrello/umbrello/dialogs/pages/classifierlistpage.cpp: 774 in ClassifierListPage::addClassifier(UMLClassifierListItem *, int)()
768 switch (m_itemType) {
769 case UMLObject::ot_Attribute: {
770 UMLAttribute *att = dynamic_cast<UMLAttribute*>(listitem);
771 return m_pClassifier->addAttribute(att, NULL, position);
772 }
773 case UMLObject::ot_Operation: {
>>> CID 89256: Null pointer dereferences (FORWARD_NULL)
>>> Assigning: "op" = "dynamic_cast <UMLOperation *>(listitem)".
774 UMLOperation *op = dynamic_cast<UMLOperation*>(listitem);
775 return m_pClassifier->addOperation(op, position);
776 }
777 case UMLObject::ot_Template: {
778 UMLTemplate* t = dynamic_cast<UMLTemplate*>(listitem);
779 return m_pClassifier->addTemplate(t, position);
** CID 89255: Null pointer dereferences (FORWARD_NULL)
/home/umbrello/src/umbrello/umbrello/dialogs/pages/classifierlistpage.cpp: 770 in ClassifierListPage::addClassifier(UMLClassifierListItem *, int)()
________________________________________________________________________________________________________
*** CID 89255: Null pointer dereferences (FORWARD_NULL)
/home/umbrello/src/umbrello/umbrello/dialogs/pages/classifierlistpage.cpp: 770 in ClassifierListPage::addClassifier(UMLClassifierListItem *, int)()
764 *
765 */
766 bool ClassifierListPage::addClassifier(UMLClassifierListItem* listitem, int position)
767 {
768 switch (m_itemType) {
769 case UMLObject::ot_Attribute: {
>>> CID 89255: Null pointer dereferences (FORWARD_NULL)
>>> Assigning: "att" = "dynamic_cast <UMLAttribute *>(listitem)".
770 UMLAttribute *att = dynamic_cast<UMLAttribute*>(listitem);
771 return m_pClassifier->addAttribute(att, NULL, position);
772 }
773 case UMLObject::ot_Operation: {
774 UMLOperation *op = dynamic_cast<UMLOperation*>(listitem);
775 return m_pClassifier->addOperation(op, position);
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/3327?tab=overview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/umbrello-devel/attachments/20150408/7c3b60d9/attachment.html>
More information about the umbrello-devel
mailing list