applying patch from bug #60757 this should close it Daniel

* parserInternals.c: applying patch from bug #60757 this
  should close it
Daniel
diff --git a/parserInternals.c b/parserInternals.c
index 0273770..7ab7812 100644
--- a/parserInternals.c
+++ b/parserInternals.c
@@ -2392,7 +2392,7 @@
 
   /* 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;