1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

Fix null deref in xmlregexp error path

Thanks to Shaobo He for the report.
This commit is contained in:
Nick Wellnhofer
2019-03-05 15:14:34 +01:00
parent 8161b463f5
commit 09797c139e

View File

@ -5537,6 +5537,8 @@ xmlRegexpIsDeterminist(xmlRegexpPtr comp) {
return(comp->determinist);
am = xmlNewAutomata();
if (am == NULL)
return(-1);
if (am->states != NULL) {
int i;