1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

strengthen the guard in the Pop macros, like in the XML parser, closes bug

* HTMLparser.c: strengthen the guard in the Pop macros,
  like in the XML parser, closes bug #97315
Daniel
This commit is contained in:
Daniel Veillard
2002-11-12 21:14:17 +00:00
parent 0821b1584b
commit 8dd86a5b61
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Nov 12 22:06:45 CET 2002 Daniel Veillard <daniel@veillard.com>
* HTMLparser.c: strengthen the guard in the Pop macros,
like in the XML parser, closes bug #97315
Tue Nov 12 21:56:39 CET 2002 Daniel Veillard <daniel@veillard.com> Tue Nov 12 21:56:39 CET 2002 Daniel Veillard <daniel@veillard.com>
* include/libxml/parser.h: fixed bug #98338 , fatalError SAX * include/libxml/parser.h: fixed bug #98338 , fatalError SAX

View File

@ -84,7 +84,7 @@ scope int html##name##Push(htmlParserCtxtPtr ctxt, type value) { \
} \ } \
scope type html##name##Pop(htmlParserCtxtPtr ctxt) { \ scope type html##name##Pop(htmlParserCtxtPtr ctxt) { \
type ret; \ type ret; \
if (ctxt->name##Nr < 0) return(0); \ if (ctxt->name##Nr <= 0) return(0); \
ctxt->name##Nr--; \ ctxt->name##Nr--; \
if (ctxt->name##Nr < 0) return(0); \ if (ctxt->name##Nr < 0) return(0); \
if (ctxt->name##Nr > 0) \ if (ctxt->name##Nr > 0) \