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:
@ -5537,6 +5537,8 @@ xmlRegexpIsDeterminist(xmlRegexpPtr comp) {
|
||||
return(comp->determinist);
|
||||
|
||||
am = xmlNewAutomata();
|
||||
if (am == NULL)
|
||||
return(-1);
|
||||
if (am->states != NULL) {
|
||||
int i;
|
||||
|
||||
|
Reference in New Issue
Block a user