Infinite loop in src/gzip/ftgzip.c
- From: Weiqi Gao <weiqigao networkusa net>
- To: devel freetype org
- Cc: garnome-list gnome org
- Subject: Infinite loop in src/gzip/ftgzip.c
- Date: 08 Feb 2003 10:17:59 -0600
Hi,
I ran into infinite loops with gziped fonts using freetype-2.1.3.tar.bz2
from http://dl.sourceforge.net/freetype/.
I was building GNOME 2.2.0 on a Red Hat 8.0/Intel system using GARNOME
0.21.0. One other use on the GARNOME mailing list also experienced a
similar problem.
A patch is attached.
--
Weiqi Gao
weiqigao networkusa net
--- ftgzip.c.orig 2003-02-08 10:13:03.000000000 -0600
+++ ftgzip.c 2003-02-08 10:14:21.000000000 -0600
@@ -452,6 +452,9 @@
FT_ULong delta;
delta = (FT_ULong)( zip->limit - zip->cursor );
+ if ( delta == 0 )
+ break;
+
if ( delta >= count )
delta = count;
2003-02-08 Weiqi Gao <weiqigao networkusa net>
* src/gzip/ftgzip.c: fixed infinite loop in ft_gzip_file_io.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]