[sfnt] Fix Savannah bug #43597.
* src/sfnt/pngshim.c (Load_SBit_Png): Protect against too large bitmaps.
This commit is contained in:
parent
257c270bd2
commit
54abd22891
|
@ -1,3 +1,10 @@
|
|||
2014-11-15 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[sfnt] Fix Savannah bug #43597.
|
||||
|
||||
* src/sfnt/pngshim.c (Load_SBit_Png): Protect against too large
|
||||
bitmaps.
|
||||
|
||||
2014-11-12 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[sfnt] Fix Savannah bug #43591.
|
||||
|
|
|
@ -269,6 +269,13 @@
|
|||
map->pitch = map->width * 4;
|
||||
map->num_grays = 256;
|
||||
|
||||
/* reject too large bitmaps similarly to the rasterizer */
|
||||
if ( map->rows > 0x7FFF || map->width > 0x7FFF )
|
||||
{
|
||||
error = FT_THROW( Array_Too_Large );
|
||||
goto DestroyExit;
|
||||
}
|
||||
|
||||
size = map->rows * map->pitch;
|
||||
|
||||
error = ft_glyphslot_alloc_bitmap( slot, size );
|
||||
|
|
Loading…
Reference in New Issue