1
Description: Force negative encoding values to follow the spec
2
Origin: upstream, http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=28dd2c45957278e962f95633157b6139de8170aa
4
Index: freetype-2.4.8/src/bdf/bdflib.c
5
===================================================================
6
--- freetype-2.4.8.orig/src/bdf/bdflib.c 2012-03-20 15:33:55.000000000 -0500
7
+++ freetype-2.4.8/src/bdf/bdflib.c 2012-03-20 15:44:43.560369850 -0500
10
p->glyph_enc = _bdf_atol( p->list.field[1], 0, 10 );
12
+ /* Normalize negative encoding values. The specification only */
13
+ /* allows -1, but we can be more generous here. */
14
+ if ( p->glyph_enc < -1 )
17
/* Check that the encoding is in the range [0,65536] because */
18
/* otherwise p->have (a bitmap with static size) overflows. */
19
if ( p->glyph_enc > 0 &&