xplist: Fix OOB read when parsing node text content
diff --git a/src/xplist.c b/src/xplist.c
index 0e8b7e6..f73b12d 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -528,7 +528,7 @@
     do {
         p = ctx->pos;
         find_char(ctx, '<', 0);
-        if (*ctx->pos != '<') {
+        if (ctx->pos >= ctx->end || *ctx->pos != '<') {
             PLIST_XML_ERR("EOF while looking for closing tag\n");
             ctx->err++;
             return NULL;