Initial commit
[gentoo-soor-overlay.git] / media-libs / freetype / files / freetype-bdflib-large-encodings.patch
blobc3d442208b59495e58b83eabd21ca3ebfbb5bc0c
1 Index: src/bdf/bdflib.c
2 ===================================================================
3 --- src/bdf/bdflib.c.orig 2007-07-07 01:14:17.000000000 -0700
4 +++ src/bdf/bdflib.c 2007-07-07 01:14:29.000000000 -0700
5 @@ -1578,6 +1578,14 @@
6 goto Exit;
9 + /* Check that the encoding is in the range [0, 65535] because */
10 + /* otherwise p->have (a bitmap with static size) overflows. */
11 + if ( p->glyph_enc >= sizeof(p->have) * 8 )
12 + {
13 + error = BDF_Err_Invalid_File_Format; /* Not the ideal error code */
14 + goto Exit;
15 + }
17 /* Check to see whether this encoding has already been encountered. */
18 /* If it has then change it to unencoded so it gets added if */
19 /* indicated. */