ref: 9d8e6c29801c95ca170578a209ba2308dd8efa99
parent: 68bc56f864e3e1acd00870ca04085f387b144494
author: Werner Lemberg <[email protected]>
date: Sat Jun 16 06:11:58 EDT 2018
* src/base/ftbitmap.c (FT_Bitmap_Blend): Avoid integer overflow.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2018-06-16 Werner Lemberg <[email protected]>
+ * src/base/ftbitmap.c (FT_Bitmap_Blend): Avoid integer overflow.
+
+2018-06-16 Werner Lemberg <[email protected]>
+
Add `FT_Bitmap_Blend' API.
Still missing: Support for negative bitmap pitch and subpixel offset
--- a/src/base/ftbitmap.c
+++ b/src/base/ftbitmap.c
@@ -901,8 +901,11 @@
source_llx -= final_llx;
source_lly -= final_lly;
- target_llx -= final_llx;
- target_lly -= final_lly;
+ if ( target->width && target->rows )
+ {
+ target_llx -= final_llx;
+ target_lly -= final_lly;
+ }
/* set up target bitmap */
if ( target->pixel_mode == FT_PIXEL_MODE_NONE )