* src/base/ftbitmap.c (FT_Bitmap_Blend): Avoid integer overflow.
This commit is contained in:
parent
68bc56f864
commit
9d8e6c2980
|
@ -1,3 +1,7 @@
|
||||||
|
2018-06-16 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
* src/base/ftbitmap.c (FT_Bitmap_Blend): Avoid integer overflow.
|
||||||
|
|
||||||
2018-06-16 Werner Lemberg <wl@gnu.org>
|
2018-06-16 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
Add `FT_Bitmap_Blend' API.
|
Add `FT_Bitmap_Blend' API.
|
||||||
|
|
|
@ -901,8 +901,11 @@
|
||||||
source_llx -= final_llx;
|
source_llx -= final_llx;
|
||||||
source_lly -= final_lly;
|
source_lly -= final_lly;
|
||||||
|
|
||||||
target_llx -= final_llx;
|
if ( target->width && target->rows )
|
||||||
target_lly -= final_lly;
|
{
|
||||||
|
target_llx -= final_llx;
|
||||||
|
target_lly -= final_lly;
|
||||||
|
}
|
||||||
|
|
||||||
/* set up target bitmap */
|
/* set up target bitmap */
|
||||||
if ( target->pixel_mode == FT_PIXEL_MODE_NONE )
|
if ( target->pixel_mode == FT_PIXEL_MODE_NONE )
|
||||||
|
|
Loading…
Reference in New Issue