ref: c69891a1345640096fbf396e8dd567fe879ce233
parent: 6fc12943e99b05f489b634e79b5cd590eb7ffc3f
author: suzuki toshiya <[email protected]>
date: Fri Jun 25 05:02:18 EDT 2010
Initial fix for Savannah bug #30248 and #30249. * src/base/ftobjs.c (Mac_Read_POST_Resource): Check the error during reading a PFB fragment embedded in LaserWriter PS font for Macintosh. Reported by Robert Swiecki.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-06-25 suzuki toshiya <[email protected]>
+
+ Initial fix for Savannah bug #30248 and #30249.
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Check the error during
+ reading a PFB fragment embedded in LaserWriter PS font for Macintosh.
+ Reported by Robert Swiecki.
+
2010-06-24 Werner Lemberg <[email protected]>
Fix Savannah bug #30247.
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -1574,6 +1574,8 @@
}
error = FT_Stream_Read( stream, (FT_Byte *)pfb_data + pfb_pos, rlen );
+ if ( error )
+ goto Exit2;
pfb_pos += rlen;
}