xotcl (1.6.7-2) 01_expat_xmltok_impl.patch

Summary

 library/xml/TclExpat-1.1/xmltok_impl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

Author: <Stefan Sobernig <stefan.sobernig@wu-wien.ac.at>>
Description: see http://security-tracker.debian.org/tracker/CVE-2009-3720.
--- xotcl-1.6.7.orig/library/xml/TclExpat-1.1/xmltok_impl.c
+++ xotcl-1.6.7/library/xml/TclExpat-1.1/xmltok_impl.c
@@ -112,7 +112,7 @@
       return XML_TOK_INVALID;
     }
     ptr += MINBPC;
-    while (ptr != end) {
+    while (ptr < end) {
       switch (BYTE_TYPE(enc, ptr)) {
       INVALID_CASES(ptr, nextTokPtr)
       case BT_MINUS: