mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-12 09:17:37 +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:
parent
cf9eadf7f9
commit
9887395b55
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user