Commit 09797c13 authored by Nick Wellnhofer's avatar Nick Wellnhofer

Fix null deref in xmlregexp error path

Thanks to Shaobo He for the report.
parent 8161b463
......@@ -5537,6 +5537,8 @@ xmlRegexpIsDeterminist(xmlRegexpPtr comp) {
return(comp->determinist);
am = xmlNewAutomata();
if (am == NULL)
return(-1);
if (am->states != NULL) {
int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment