changeset 315:a147e4823504

- Fixed a segfault bug in VERBATIM mode.
author jcid
date Mon, 25 Aug 2008 17:35:08 +0200
parents cf1216d236d4
children d8610f587004
files ChangeLog src/html.cc
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Aug 23 23:57:55 2008 +0200
+++ b/ChangeLog	Mon Aug 25 17:35:08 2008 +0200
@@ -109,6 +109,7 @@
  - Implemented OBJECT as link (similar to FRAME).
  - Enabled the file dpi to look inside gzipped files.
  - Allowed form inputs outside the FORM element (it's in the standard).
+ - Fixed a segfault bug in VERBATIM mode.
    Patches: place (AKA corvid)
 +- Fixed a problem with locally-installed dpis.
  - Added code for optional image loading (nice interface) very advanced!
--- a/src/html.cc	Sat Aug 23 23:57:55 2008 +0200
+++ b/src/html.cc	Mon Aug 25 17:35:08 2008 +0200
@@ -3753,6 +3753,9 @@
             } else
                ++buf_index;
          } while (buf_index < bufsize);
+
+         if (buf_index == bufsize)
+            break;
       }
 
       if (isspace(buf[buf_index])) {