ref: 504645ed5ba7540bea4a623ba8489f6502891908
parent: e6e6eade04018f42c4c443561166ac439722f0dd
author: Werner Lemberg <[email protected]>
date: Wed May 14 19:26:20 EDT 2008
* src/type1/t1load.c (parse_subrs): Accept fonts with a subrs array which contain a single but empty entry. This is technically invalid (since it must end with `return', but...) Reported by Martin McBride.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-05-15 Werner Lemberg <[email protected]>
+
+ * src/type1/t1load.c (parse_subrs): Accept fonts with a subrs array
+ which contain a single but empty entry. This is technically
+ invalid (since it must end with `return', but...)
+
+ Reported by Martin McBride.
+
2008-05-14 Werner Lemberg <[email protected]>
Finish fix of scaling bug of CID-keyed CFF subfonts.
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -4,7 +4,7 @@
/* */
/* Type 1 font loader (body). */
/* */
-/* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007 by */
+/* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -1397,7 +1397,7 @@
FT_Byte* temp;
- if ( size <= face->type1.private_dict.lenIV )
+ if ( size < face->type1.private_dict.lenIV )
{
error = T1_Err_Invalid_File_Format;
goto Fail;