GNOME Bugzilla – Bug 735477
[PATCH] Fix a potential null pointer dereference in src/memberdef.cpp
Last modified: 2014-12-25 16:03:31 UTC
Created attachment 284539 [details] [review] proposed fix Please review the attached patch, it fixes a potential null pointer dereference in src/memberdef.cpp. The statement mli.current() can return 0. Here is a traceback: The function current() looks as followed (qtools/qlist.h, line 146): type *current() const { return (type *)QGListIterator::get(); } The function QGlistIterator::get() (qtools/qglist.h, 253) looks as followed: inline QCollection::Item QGListIterator::get() const { return curNode ? curNode->data : 0; } As you can see, it can return 0. This patch takes care of this potential issue. Best regards and many thanks Martin Ettl
Thanks, I'll include a variant of the patch in the next GIT update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.9. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant (preferrably in the form of a self-contained example).