mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-05 00:48:00 +02:00
* 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
2 changed files with 13 additions and 0 deletions
|
|
@ -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>
|
||||
|
||||
Fix return value of `FT_Set_Named_Instance' (#56186).
|
||||
|
|
|
|||
|
|
@ -971,6 +971,13 @@
|
|||
|
||||
|
||||
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 )
|
||||
pitch = -pitch;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue