summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-11-26 00:29:17 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-11-26 00:29:17 +0000
commit568f8c18c43d38a5207d39a82d26e61838ad569f (patch)
tree98b33bd77ccc11181cf26c213808a770714d0bc5
parent524c9bdd61df61c9f4cfc42f5f2c80b7ef64bd21 (diff)
downloadpango-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--ChangeLog6
-rw-r--r--ChangeLog.pre-1-106
-rw-r--r--ChangeLog.pre-1-26
-rw-r--r--ChangeLog.pre-1-46
-rw-r--r--ChangeLog.pre-1-66
-rw-r--r--ChangeLog.pre-1-86
-rw-r--r--pango/mini-fribidi/fribidi_get_type.c2
7 files changed, 37 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 685cbaa2..93ce2fde 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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];