From e05d0b5856ca9f7e367ec049d0c5620a0e1e52db Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Tue, 3 Oct 2000 21:13:35 -0700
Subject: [PATCH] more error detection

Rev: src/modules/spider/xml.c:1.28
---
 src/modules/spider/xml.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/modules/spider/xml.c b/src/modules/spider/xml.c
index fc00643271..3965a796af 100644
--- a/src/modules/spider/xml.c
+++ b/src/modules/spider/xml.c
@@ -2489,6 +2489,11 @@ static struct pike_string *very_low_parse_xml(struct xmldata *data,
 
 	    switch(PEEK(0))
 	    {
+	      default:
+		XMLERROR("Failed to find end of tag.");
+		pop_n_elems(3);
+		break;
+
 	      case '>':
 		READ(1);
 
-- 
GitLab