mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-27 18:50:07 +03:00
Merge branch 'xmlregexp-critical' into 'master'
xmlregexp: Add check for exec->state when creating xmlRegExec object See merge request GNOME/libxml2!245
This commit is contained in:
commit
61f9f1a626
@ -3610,6 +3610,8 @@ xmlRegNewExecCtxt(xmlRegexpPtr comp, xmlRegExecCallbacks callback, void *data) {
|
||||
exec->comp = comp;
|
||||
if (comp->compact == NULL)
|
||||
exec->state = comp->states[0];
|
||||
if (exec->state == NULL)
|
||||
return(NULL);
|
||||
exec->transno = 0;
|
||||
exec->transcount = 0;
|
||||
exec->callback = callback;
|
||||
|
Loading…
x
Reference in New Issue
Block a user