* src/type1/t1load.c (parse_encoding): Protect against infinite
loop. This fixes Savannah bug #24150 (where a patch has been posted too).
This commit is contained in:
parent
a4cb0d95d9
commit
4dbf00aa23
|
@ -1,3 +1,9 @@
|
|||
2008-08-28 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/type1/t1load.c (parse_encoding): Protect against infinite
|
||||
loop. This fixes Savannah bug #24150 (where a patch has been posted
|
||||
too).
|
||||
|
||||
2008-08-23 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/type/t1afm.c (compare_kern_pairs), src/pxaux/afmparse.c
|
||||
|
|
|
@ -1274,6 +1274,19 @@
|
|||
|
||||
n++;
|
||||
}
|
||||
else if ( only_immediates )
|
||||
{
|
||||
/* Since the current position is not updated for */
|
||||
/* immediates-only mode we would get an infinite loop if */
|
||||
/* we don't do anything here. */
|
||||
/* */
|
||||
/* This encoding array is not valid according to the type1 */
|
||||
/* specification (it might be an encoding for a CID type1 */
|
||||
/* font, however), so we conclude that this font is NOT a */
|
||||
/* type1 font. */
|
||||
parser->root.error = FT_Err_Unknown_File_Format;
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue