summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-04-15 21:05:53 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-04-15 21:05:53 +0000
commite3ada7907fcbab7ba9042b9924a57d466eb99386 (patch)
tree7e7005f05387436edf7ae139a8ffe8d4c36ed871
parent57adead4c3fb13fa662800bcec6719cecb8ac8bb (diff)
downloadpango-e3ada7907fcbab7ba9042b9924a57d466eb99386.tar.gz
Fix infinite loop in the case where the charmap contains a character >
Tue Apr 15 05:00:39 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/pango-ot-info.c (synthesize_class_def): Fix infinite loop in the case where the charmap contains a character > 65535. (#106550, Morten Welinder.)
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-1-106
-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/opentype/pango-ot-info.c14
6 files changed, 37 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index f3d95762..827def34 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Apr 15 05:00:39 2003 Owen Taylor <otaylor@redhat.com>
+
+ * pango/opentype/pango-ot-info.c (synthesize_class_def):
+ Fix infinite loop in the case where the charmap contains
+ a character > 65535. (#106550, Morten Welinder.)
+
Tue Apr 15 04:53:56 2003 Owen Taylor <otaylor@redhat.com>
* modules/indic/indic-ot.h (enum): Cast some enumeration
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index f3d95762..827def34 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,9 @@
+Tue Apr 15 05:00:39 2003 Owen Taylor <otaylor@redhat.com>
+
+ * pango/opentype/pango-ot-info.c (synthesize_class_def):
+ Fix infinite loop in the case where the charmap contains
+ a character > 65535. (#106550, Morten Welinder.)
+
Tue Apr 15 04:53:56 2003 Owen Taylor <otaylor@redhat.com>
* modules/indic/indic-ot.h (enum): Cast some enumeration
diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4
index f3d95762..827def34 100644
--- a/ChangeLog.pre-1-4
+++ b/ChangeLog.pre-1-4
@@ -1,3 +1,9 @@
+Tue Apr 15 05:00:39 2003 Owen Taylor <otaylor@redhat.com>
+
+ * pango/opentype/pango-ot-info.c (synthesize_class_def):
+ Fix infinite loop in the case where the charmap contains
+ a character > 65535. (#106550, Morten Welinder.)
+
Tue Apr 15 04:53:56 2003 Owen Taylor <otaylor@redhat.com>
* modules/indic/indic-ot.h (enum): Cast some enumeration
diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6
index f3d95762..827def34 100644
--- a/ChangeLog.pre-1-6
+++ b/ChangeLog.pre-1-6
@@ -1,3 +1,9 @@
+Tue Apr 15 05:00:39 2003 Owen Taylor <otaylor@redhat.com>
+
+ * pango/opentype/pango-ot-info.c (synthesize_class_def):
+ Fix infinite loop in the case where the charmap contains
+ a character > 65535. (#106550, Morten Welinder.)
+
Tue Apr 15 04:53:56 2003 Owen Taylor <otaylor@redhat.com>
* modules/indic/indic-ot.h (enum): Cast some enumeration
diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8
index f3d95762..827def34 100644
--- a/ChangeLog.pre-1-8
+++ b/ChangeLog.pre-1-8
@@ -1,3 +1,9 @@
+Tue Apr 15 05:00:39 2003 Owen Taylor <otaylor@redhat.com>
+
+ * pango/opentype/pango-ot-info.c (synthesize_class_def):
+ Fix infinite loop in the case where the charmap contains
+ a character > 65535. (#106550, Morten Welinder.)
+
Tue Apr 15 04:53:56 2003 Owen Taylor <otaylor@redhat.com>
* modules/indic/indic-ot.h (enum): Cast some enumeration
diff --git a/pango/opentype/pango-ot-info.c b/pango/opentype/pango-ot-info.c
index 1a4251a3..1c55f2e0 100644
--- a/pango/opentype/pango-ot-info.c
+++ b/pango/opentype/pango-ot-info.c
@@ -202,13 +202,13 @@ synthesize_class_def (PangoOTInfo *info)
{
GlyphInfo glyph_info;
- if (glyph > 65535)
- continue;
-
- glyph_info.glyph = glyph;
- glyph_info.class = get_glyph_class (charcode);
-
- g_array_append_val (glyph_infos, glyph_info);
+ if (glyph <= 65535)
+ {
+ glyph_info.glyph = glyph;
+ glyph_info.class = get_glyph_class (charcode);
+
+ g_array_append_val (glyph_infos, glyph_info);
+ }
charcode = FT_Get_Next_Char (info->face, charcode, &glyph);
}