diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-11-26 00:29:17 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-11-26 00:29:17 +0000 |
commit | 568f8c18c43d38a5207d39a82d26e61838ad569f (patch) | |
tree | 98b33bd77ccc11181cf26c213808a770714d0bc5 | |
parent | 524c9bdd61df61c9f4cfc42f5f2c80b7ef64bd21 (diff) | |
download | pango-568f8c18c43d38a5207d39a82d26e61838ad569f.tar.gz |
Fix off-by-one in check for non-BMP characters. (#91834, He Qiangqiang)
Mon Nov 25 19:24:29 2002 Owen Taylor <otaylor@redhat.com>
* pango/mini-fribidi/fribidi_get_type.c (_pango_fribidi_get_type):
Fix off-by-one in check for non-BMP characters.
(#91834, He Qiangqiang)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-2 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-4 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-6 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 6 | ||||
-rw-r--r-- | pango/mini-fribidi/fribidi_get_type.c | 2 |
7 files changed, 37 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Mon Nov 25 19:24:29 2002 Owen Taylor <otaylor@redhat.com> + + * pango/mini-fribidi/fribidi_get_type.c (_pango_fribidi_get_type): + Fix off-by-one in check for non-BMP characters. + (#91834, He Qiangqiang) + Mon Nov 25 11:58:30 2002 Owen Taylor <otaylor@redhat.com> * examples/viewer-qt.cc (readFile): Fix missing argument diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index 685cbaa2..93ce2fde 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,9 @@ +Mon Nov 25 19:24:29 2002 Owen Taylor <otaylor@redhat.com> + + * pango/mini-fribidi/fribidi_get_type.c (_pango_fribidi_get_type): + Fix off-by-one in check for non-BMP characters. + (#91834, He Qiangqiang) + Mon Nov 25 11:58:30 2002 Owen Taylor <otaylor@redhat.com> * examples/viewer-qt.cc (readFile): Fix missing argument diff --git a/ChangeLog.pre-1-2 b/ChangeLog.pre-1-2 index 685cbaa2..93ce2fde 100644 --- a/ChangeLog.pre-1-2 +++ b/ChangeLog.pre-1-2 @@ -1,3 +1,9 @@ +Mon Nov 25 19:24:29 2002 Owen Taylor <otaylor@redhat.com> + + * pango/mini-fribidi/fribidi_get_type.c (_pango_fribidi_get_type): + Fix off-by-one in check for non-BMP characters. + (#91834, He Qiangqiang) + Mon Nov 25 11:58:30 2002 Owen Taylor <otaylor@redhat.com> * examples/viewer-qt.cc (readFile): Fix missing argument diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index 685cbaa2..93ce2fde 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,3 +1,9 @@ +Mon Nov 25 19:24:29 2002 Owen Taylor <otaylor@redhat.com> + + * pango/mini-fribidi/fribidi_get_type.c (_pango_fribidi_get_type): + Fix off-by-one in check for non-BMP characters. + (#91834, He Qiangqiang) + Mon Nov 25 11:58:30 2002 Owen Taylor <otaylor@redhat.com> * examples/viewer-qt.cc (readFile): Fix missing argument diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index 685cbaa2..93ce2fde 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,9 @@ +Mon Nov 25 19:24:29 2002 Owen Taylor <otaylor@redhat.com> + + * pango/mini-fribidi/fribidi_get_type.c (_pango_fribidi_get_type): + Fix off-by-one in check for non-BMP characters. + (#91834, He Qiangqiang) + Mon Nov 25 11:58:30 2002 Owen Taylor <otaylor@redhat.com> * examples/viewer-qt.cc (readFile): Fix missing argument diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index 685cbaa2..93ce2fde 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,9 @@ +Mon Nov 25 19:24:29 2002 Owen Taylor <otaylor@redhat.com> + + * pango/mini-fribidi/fribidi_get_type.c (_pango_fribidi_get_type): + Fix off-by-one in check for non-BMP characters. + (#91834, He Qiangqiang) + Mon Nov 25 11:58:30 2002 Owen Taylor <otaylor@redhat.com> * examples/viewer-qt.cc (readFile): Fix missing argument diff --git a/pango/mini-fribidi/fribidi_get_type.c b/pango/mini-fribidi/fribidi_get_type.c index 3f32d5e0..e81607a2 100644 --- a/pango/mini-fribidi/fribidi_get_type.c +++ b/pango/mini-fribidi/fribidi_get_type.c @@ -40,7 +40,7 @@ _pango_fribidi_get_type(FriBidiChar uch) { FriBidiPropCharType *block; int i = uch % 256, j = uch / 256; - if (j > 256) + if (j >= 256) return FRIBIDI_TYPE_LTR; block = FriBidiPropertyBlocks[j]; |