1
Description: Validate first and last character code fields
2
Origin: upstream, http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=7d35a7dc7cc621538a1f4a63c83ebf223aace0b0
4
Index: freetype-2.3.11/src/winfonts/winfnt.c
5
===================================================================
6
--- freetype-2.3.11.orig/src/winfonts/winfnt.c 2009-07-31 11:45:19.000000000 -0500
7
+++ freetype-2.3.11/src/winfonts/winfnt.c 2012-03-21 02:59:49.880917252 -0500
9
root->charmap = root->charmaps[0];
12
- /* setup remaining flags */
13
+ /* set up remaining flags */
15
+ if ( font->header.last_char < font->header.first_char )
17
+ FT_TRACE2(( "invalid number of glyphs\n" ));
18
+ error = FNT_Err_Invalid_File_Format;
22
/* reserve one slot for the .notdef glyph at index 0 */
23
root->num_glyphs = font->header.last_char -