1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

fixed problem causing segfault on validation error condition (reported on

* xmlregexp.c: fixed problem causing segfault on validation error
  condition (reported on mailing list)
This commit is contained in:
William M. Brack 2003-12-26 06:03:14 +00:00
parent cf9eadf7f9
commit 9887395b55
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Dec 26 14:03:41 HKT 2003 William Brack <wbrack@mmm.com.hk>
* xmlregexp.c: fixed problem causing segfault on validation error
condition (reported on mailing list)
Thu Dec 25 21:16:22 HKT 2003 William Brack <wbrack@mmm.com.hk>
* xmlschemas.c: fixed missing dictionaries for Memory and Doc

View File

@ -2816,7 +2816,8 @@ xmlRegExecPushString(xmlRegExecCtxtPtr exec, const xmlChar *value,
}
}
if (ret == 1) {
if ((exec->callback != NULL) && (atom != NULL)) {
if ((exec->callback != NULL) && (atom != NULL) &&
(data != NULL)) {
exec->callback(exec->data, atom->valuep,
atom->data, data);
}