[umbrello] [Bug 373911] After upgrading to 2.20.90 from version 2.20.3, umbrello crash when I try to open model created with 2.20.3
Ralf Habacker
bugzilla_noreply at kde.org
Wed Jan 4 11:09:05 UTC 2017
https://bugs.kde.org/show_bug.cgi?id=373911
--- Comment #17 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to Ralf Habacker from comment #15)
> on windows:
>
> __ZN9UMLObject15asUMLClassifierEv:
> subl $28, %esp
> movl $0, 12(%esp)
> movl $__ZTI13UMLClassifier, 8(%esp)
> movl $__ZTI9UMLObject, 4(%esp)
> movl %ecx, (%esp)
> call ___dynamic_cast
> addl $28, %esp
> ret
>
> -> there is no null pointer check
The reason why there is no null pointer check with cross-gcc 6.2 is probably
because 'this' pointer is marked as to be "notnull".
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes
states:
"... The nonnull attribute specifies that some function parameters should be
non-null pointers. .... The compiler may also choose to make optimizations
based on the knowledge that certain function arguments will never be null. ..."
In the opposite gcc 5.x on linux adds this check
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list