From b1d62871db75d927bf3f9a18a27845059a67820c Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 21 Sep 2001 09:47:08 +0000 Subject: [PATCH] applying patch from bug #60757 this should close it Daniel * parserInternals.c: applying patch from bug #60757 this should close it Daniel --- ChangeLog | 5 +++++ parserInternals.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 485d2218..063bb943 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 21 11:45:53 CEST 2001 Daniel Veillard + + * parserInternals.c: applying patch from bug #60757 this + should close it + Thu Sep 20 15:54:29 CEST 2001 Daniel Veillard * catalog.c xmlcatalog.c: removed a couple of warning diff --git a/parserInternals.c b/parserInternals.c index 02737700..7ab7812d 100644 --- a/parserInternals.c +++ b/parserInternals.c @@ -2392,7 +2392,7 @@ const xmlParserNodeInfo* xmlParserFindNodeInfo(const xmlParserCtxt* ctx, /* Find position where node should be at */ pos = xmlParserFindNodeInfoIndex(&ctx->node_seq, node); - if ( ctx->node_seq.buffer[pos].node == node ) + if (pos < ctx->node_seq.length && ctx->node_seq.buffer[pos].node == node) return &ctx->node_seq.buffer[pos]; else return NULL;