1
0
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:
Maks Mishin 2025-03-14 23:17:16 +00:00
commit 61f9f1a626

View File

@ -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;