[umbrello] [Bug 425459] New: ToolBarState and associated classes never check UMLScene* for NULL
Robert Hairgrove
bugzilla_noreply at kde.org
Mon Aug 17 14:25:41 BST 2020
https://bugs.kde.org/show_bug.cgi?id=425459
Bug ID: 425459
Summary: ToolBarState and associated classes never check
UMLScene* for NULL
Product: umbrello
Version: Git
Platform: Other
OS: Linux
Status: REPORTED
Severity: crash
Priority: NOR
Component: general
Assignee: umbrello-devel at kde.org
Reporter: code at roberthairgrove.com
Target Milestone: ---
SUMMARY
The class ToolBarStateFactory is responsible for creating instances of
different classes derived from ToolBarState. It is passed a UMLScene* as its
last argument. However, it does not check the pointer for NULL before using it,
which causes undefined behavior if it is NULL.
The pointer to UMLScene is passed on to the derived classes, but apparently,
also none of these other classes check the pointer, either.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list