freetype2/src
Werner Lemberg a3dd6d99a4 Fix multiple calls of `FT_Bitmap_Convert'.
The documentation of `FT_Bitmap_Convert' says that multiple calls do
proper reallocation of the target FT_Bitmap object.  However, this
failed for the sequence

  non-empty bitmap
  empty bitmap
  non-empty bitmap

Reason was that `FT_Bitmap_Convert' only reallocated the bitmap
buffer if it became too small; it didn't make the buffer smaller.
For an empty bitmap following a non-empty one, only the buffer
dimension got set to zero, without deallocation.  If the next call
was a non-empty buffer again, an assertion in `ft_mem_qrealloc' was
triggered.

* src/base/ftbitmap.c (FT_Bitmap_Convert): Always reallocate target
buffer to the correct size.

* docs/CHANGES: Document it.
2017-09-05 23:02:04 +02:00
..
autofit [autofit] More code sorting. 2017-05-17 07:56:53 +02:00
base Fix multiple calls of `FT_Bitmap_Convert'. 2017-09-05 23:02:04 +02:00
bdf [bdf] Fix size and resolution handling. 2017-09-05 15:28:21 +02:00
bzip2 Update copyright year. 2017-01-04 20:16:34 +01:00
cache Improve `make multi'. 2017-03-18 07:06:49 +01:00
cff [cff] Integer overflow. 2017-07-26 23:32:32 +02:00
cid Introduce `FT_Size_InternalRec' structure. 2017-04-22 12:48:50 +02:00
gxvalid Improve `make multi'. 2017-03-18 07:06:49 +01:00
gzip Typos. 2017-01-24 23:56:59 -05:00
lzw Update copyright year. 2017-01-04 20:16:34 +01:00
otvalid Improve `make multi'. 2017-03-18 07:06:49 +01:00
pcf * src/winfonts/winfnt.c (FNT_Face_Init): Don't set active encoding. 2017-06-14 07:51:04 +02:00
pfr * src/winfonts/winfnt.c (FNT_Face_Init): Don't set active encoding. 2017-06-14 07:51:04 +02:00
psaux */*: Remove `OVERFLOW_' prefix. 2017-06-09 11:21:58 +02:00
pshinter [autofit] Remove `slight' auto-hint mode again. 2017-05-02 12:32:19 +02:00
psnames [psnames] Really fix issue #49949. 2017-08-09 07:45:12 +02:00
raster Swap `ALLOC_MULT' arguments (#51833). 2017-08-25 21:40:01 -04:00
sfnt [sfnt] Fix clang compilation (#51788). 2017-08-23 08:18:22 +02:00
smooth [smooth] Harmony LCD rendering. 2017-08-08 22:29:51 -04:00
tools [psnames] Really fix issue #49949. 2017-08-09 07:45:12 +02:00
truetype [truetype] Integer overflow. 2017-08-22 08:25:14 +02:00
type1 * src/winfonts/winfnt.c (FNT_Face_Init): Don't set active encoding. 2017-06-14 07:51:04 +02:00
type42 * src/winfonts/winfnt.c (FNT_Face_Init): Don't set active encoding. 2017-06-14 07:51:04 +02:00
winfonts Swap `ALLOC_MULT' arguments (#51833). 2017-08-25 21:40:01 -04:00
Jamfile Update copyright year. 2017-01-04 20:16:34 +01:00