lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev patch for <> in <SCRIPT> contents - Debian bug #65151


From: Klaus Weide
Subject: lynx-dev patch for <> in <SCRIPT> contents - Debian bug #65151
Date: Sun, 9 Jul 2000 15:34:43 -0500 (CDT)

See <http://cgi.debian.org/cgi-bin/bugreport.cgi?bug=65151>.
This appears to fix it.  The coulde should not have used
string->size-2 as an index without checking that it is valid
anyway.

Note: line numbers are off, expect 'patch' to report a big offset.

   Klaus


--- older/WWW/Library/Implementation/SGML.c     Tue May 23 01:29:41 2000
+++ WWW/Library/Implementation/SGML.c   Wed Jun 21 16:14:29 2000
@@ -2278,7 +2278,8 @@
            /*
            **  If complete match, end litteral.
            */
-           if ((c == '>') && testtag && !testtag->name[string->size-2]) {
+           if ((c == '>') && testtag &&
+               string->size > 1 && !testtag->name[string->size-2]) {
 #ifdef USE_PRETTYSRC
                if (psrc_view) {
                    PSRCSTART(abracket);PUTC('<');PUTC('/');PSRCSTOP(abracket);


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]