GNOME Bugzilla – Bug 708355
Pointer dereferenced before null check
Last modified: 2014-02-18 03:49:41 UTC
Created attachment 255281 [details] [review] Avoiding possible pointer dereference before NULL check. In file https://git.gnome.org/browse/libxml2/tree/xmlmodule.c Funtion : xmlModuleSymbol(xmlModulePtr module, const char *name, void **symbol) Pointer name is dereferenced in call: rc = xmlModulePlatformSymbol(module->handle, name, symbol); But in next statement it is NULL checked. So, If it is already NULL, then dereferencing NULL pointer may crash the code. Attached Patched fixes the above situation.
Okay should be fixed in commit 085b997cfd0cd19481d9eecab22da5adf67bcbdc thanks ! Daniel