From: Daniel Elstner Date: Wed, 28 Nov 2001 21:23:32 +0000 (+0000) Subject: In order to avoid infinite loops on invalid UTF-8 strings, change the skip X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=f344cb2cc2ba645ebc27c007c44e6cf871e6becc;p=dana%2Fcg-glib.git In order to avoid infinite loops on invalid UTF-8 strings, change the skip 2001-11-28 Daniel Elstner * 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. --- diff --git a/ChangeLog b/ChangeLog index 3c19d177..dc0a824f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-11-28 Daniel Elstner + + * 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 * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 3c19d177..dc0a824f 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +2001-11-28 Daniel Elstner + + * 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 * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 3c19d177..dc0a824f 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2001-11-28 Daniel Elstner + + * 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 * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 3c19d177..dc0a824f 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +2001-11-28 Daniel Elstner + + * 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 * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 3c19d177..dc0a824f 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +2001-11-28 Daniel Elstner + + * 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 * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 3c19d177..dc0a824f 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +2001-11-28 Daniel Elstner + + * 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 * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 3c19d177..dc0a824f 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2001-11-28 Daniel Elstner + + * 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 * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 3c19d177..dc0a824f 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2001-11-28 Daniel Elstner + + * 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 * configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes diff --git a/glib/gutf8.c b/glib/gutf8.c index 2aedfdc9..3ec10a70 100644 --- a/glib/gutf8.c +++ b/glib/gutf8.c @@ -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;