1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-28 00:21:53 +03:00

Patch from Dave Yearke <yearke@eng.buffalo.edu>:

- testHTML.c: fix core dump on Solaris 2.x systems
- HTMLparser.c: fix segfault if ctxt->sax->characters() is NULL
- result/HTML/*.sax: previous bug fix lead to new results
Daniel
This commit is contained in:
Daniel Veillard
2000-08-14 15:13:33 +00:00
parent 0310929cc4
commit 1255ab7780
6 changed files with 3352 additions and 3 deletions

View File

@ -2866,7 +2866,8 @@ htmlParseReference(htmlParserCtxtPtr ctxt) {
} else {
ent = htmlParseEntityRef(ctxt, &name);
if (name == NULL) {
ctxt->sax->characters(ctxt->userData, BAD_CAST "&", 1);
if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL))
ctxt->sax->characters(ctxt->userData, BAD_CAST "&", 1);
return;
}
if ((ent == NULL) || (ent->value <= 0)) {