https://bugs.documentfoundation.org/show_bug.cgi?id=101281
Bug ID: 101281
Summary: Possibility of null pointer dereferencing
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
I came across some code which I think, can lead to dereferencing of a
null-pointer.
For example:
File /core/sd/source/filter/eppt/pptx-grouptable.cxx
pTemp is dereferenced in line 47 without checking whether the new operator
returned a non-null-pointer.
45| GroupEntry** pTemp = new GroupEntry*[ nEntrys ];
46| for ( sal_uInt32 i = 0; i < mnCurrentGroupEntry; i++ )
47| pTemp[ i ] = mpGroupEntry[ i ];
Lines 59 and 60 of the same file has a similar case.
File /core/desktop/unx/source/start.c too has calloc call with similar
situation.
In the line 118 ppArgs is dereferenced without checking for a non-null-pointer.
I think this is some issue which we can work on (probably there will be some
more) to make the code better (Please correct me if I have misunderstood
anything)
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs