* src/base/ftbitmap.c (FT_Bitmap_Blend): Check target pitch.
Problem reported by Sender Ghost <lightside@gmx.com>.
This commit is contained in:
parent
af400438b7
commit
9f6ed10545
|
@ -1,3 +1,9 @@
|
||||||
|
2019-04-22 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
* src/base/ftbitmap.c (FT_Bitmap_Blend): Check target pitch.
|
||||||
|
|
||||||
|
Problem reported by Sender Ghost <lightside@gmx.com>.
|
||||||
|
|
||||||
2019-04-22 Werner Lemberg <wl@gnu.org>
|
2019-04-22 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
Fix return value of `FT_Set_Named_Instance' (#56186).
|
Fix return value of `FT_Set_Named_Instance' (#56186).
|
||||||
|
|
|
@ -971,6 +971,13 @@
|
||||||
|
|
||||||
|
|
||||||
pitch = target->pitch;
|
pitch = target->pitch;
|
||||||
|
if ( !pitch )
|
||||||
|
{
|
||||||
|
FT_TRACE5(( "FT_Blend_Bitmap:"
|
||||||
|
" zero target bitmap pitch is invalid\n" ));
|
||||||
|
return FT_THROW( Invalid_Argument );
|
||||||
|
}
|
||||||
|
|
||||||
if ( pitch < 0 )
|
if ( pitch < 0 )
|
||||||
pitch = -pitch;
|
pitch = -pitch;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue