In order to avoid infinite loops on invalid UTF-8 strings, change the skip

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.
This commit is contained in:
Daniel Elstner 2001-11-28 21:23:32 +00:00 committed by Daniel Elstner
parent 0d189bad07
commit f344cb2cc2
9 changed files with 49 additions and 1 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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;