GNOME Bugzilla – Bug 757617
Patch : Dereferencing a possible NULL pointer
Last modified: 2015-12-13 19:35:54 UTC
Created attachment 314866 [details] [review] patch file NULL check is missing on pointer before dereferencing it. File : preproc.c Function : xsltGetQNameProperty Line no : 1304 version : 1.1.28 In file preproc.c pointer ‘localName' is dereferenced at line no 1304, without NULL check. As per current implementation ‘localName’ can be NULL as NULL check is applied at line no 1274 Patch : @@ -1301,7 +1301,8 @@ if (prop == NULL) { style->errors++; } else { - *localName = prop; + if (localName) + *localName = prop; if (hasProp) *hasProp = 1; if (URI != NULL) { Please check attached patch to fix this issue.
Fixed in master: https://git.gnome.org/browse/libxslt/commit/?id=f76aadd3c396460236b63eb86dfc828ceba7ba53