* src/cid/cidload.c (cid_parse_dict): Handle invalid input (#46220).

This commit is contained in:
Werner Lemberg 2015-10-17 06:15:55 +02:00
parent 266976b163
commit a5ecfb4ce6
2 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,8 @@
2015-10-15 Kostya Serebryany <kcc@google.com>
2015-10-15 Werner Lemberg <wl@gnu.org>
* src/cid/cidload.c (cid_parse_dict): Handle invalid input (#46220).
2015-10-15 Kostya Serebryany <kcc@google.com>
[ftfuzzer] Add README.

View File

@ -395,7 +395,14 @@
cur = parser->root.cursor;
}
if ( !face->cid.num_dicts )
{
FT_ERROR(( "cid_parse_dict: No font dictionary found\n" ));
return FT_THROW( Invalid_File_Format );
}
}
return parser->root.error;
}