In order to avoid infinite loops on invalid UTF-8 strings, change the skip
authorDaniel Elstner <daniel.elstner@gmx.net>
Wed, 28 Nov 2001 21:23:32 +0000 (21:23 +0000)
committerDaniel Elstner <daniel@src.gnome.org>
Wed, 28 Nov 2001 21:23:32 +0000 (21:23 +0000)
2001-11-28  Daniel Elstner  <daniel.elstner@gmx.net>
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops on invalid UTF-8 strings, change the skip count for 0xfe and 0xff from 0 to 1.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gutf8.c

index 3c19d17..dc0a824 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-11-28  Daniel Elstner  <daniel.elstner@gmx.net>
+
+       * glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+       on invalid UTF-8 strings, change the skip count for 0xfe and 0xff
+       from 0 to 1.
+
 2001-11-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes
index 3c19d17..dc0a824 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-28  Daniel Elstner  <daniel.elstner@gmx.net>
+
+       * glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+       on invalid UTF-8 strings, change the skip count for 0xfe and 0xff
+       from 0 to 1.
+
 2001-11-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes
index 3c19d17..dc0a824 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-28  Daniel Elstner  <daniel.elstner@gmx.net>
+
+       * glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+       on invalid UTF-8 strings, change the skip count for 0xfe and 0xff
+       from 0 to 1.
+
 2001-11-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes
index 3c19d17..dc0a824 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-28  Daniel Elstner  <daniel.elstner@gmx.net>
+
+       * glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+       on invalid UTF-8 strings, change the skip count for 0xfe and 0xff
+       from 0 to 1.
+
 2001-11-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes
index 3c19d17..dc0a824 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-28  Daniel Elstner  <daniel.elstner@gmx.net>
+
+       * glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+       on invalid UTF-8 strings, change the skip count for 0xfe and 0xff
+       from 0 to 1.
+
 2001-11-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes
index 3c19d17..dc0a824 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-28  Daniel Elstner  <daniel.elstner@gmx.net>
+
+       * glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+       on invalid UTF-8 strings, change the skip count for 0xfe and 0xff
+       from 0 to 1.
+
 2001-11-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes
index 3c19d17..dc0a824 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-28  Daniel Elstner  <daniel.elstner@gmx.net>
+
+       * glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+       on invalid UTF-8 strings, change the skip count for 0xfe and 0xff
+       from 0 to 1.
+
 2001-11-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes
index 3c19d17..dc0a824 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-28  Daniel Elstner  <daniel.elstner@gmx.net>
+
+       * glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
+       on invalid UTF-8 strings, change the skip count for 0xfe and 0xff
+       from 0 to 1.
+
 2001-11-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes
index 2aedfdc..3ec10a7 100644 (file)
@@ -109,7 +109,7 @@ static const gchar utf8_skip_data[256] = {
   1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
   1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
   2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
-  3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,0,0
+  3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,1,1
 };
 
 const gchar * const g_utf8_skip = utf8_skip_data;