summaryrefslogtreecommitdiff
path: root/glib/gutf8.c
diff options
context:
space:
mode:
authorDaniel Elstner <daniel.elstner@gmx.net>2001-11-28 21:23:32 +0000
committerDaniel Elstner <daniel@src.gnome.org>2001-11-28 21:23:32 +0000
commitf344cb2cc2ba645ebc27c007c44e6cf871e6becc (patch)
tree4b4080b0e1592bb33d6143d1d3df288e2673cb53 /glib/gutf8.c
parent0d189bad07798a52cbaccfbd5ae81f61b2764c71 (diff)
downloadglib-f344cb2cc2ba645ebc27c007c44e6cf871e6becc.tar.gz
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.
Diffstat (limited to 'glib/gutf8.c')
-rw-r--r--glib/gutf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gutf8.c b/glib/gutf8.c
index 2aedfdc97..3ec10a703 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;