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:
@ -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
|
||||||
|
@ -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) \
|
||||||
|
Reference in New Issue
Block a user