freetype2/src
Ben Wagner 6ee8951956 [bzip2] Reset bzip stream on any error.
According to the bzip documentation it is undefined what will happen if
`BZ2_bzDecompress` is called on a `bz_stream` it has previously returned an
error against.  If `BZ2_bzDecompress` returns anything other than `BZ_OK`
the only valid next action is `BZ2_bzDecompressEnd`.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43564

* src/bzip2/ftbzip2.c (FT_BZip2FileRec_): Add `reset` to track the need to
reset the stream.
(ft_bzip2_file_init): Initialize `reset` to 0.
(ft_bzip2_file_reset): Set `reset` to 0 after resetting.
(ft_bzip2_file_fill_output): Set `reset` to 1 when `BZ2_bzDecompress`
returns anything other than `BZ_OK`.
2022-01-13 08:21:36 +01:00
..
autofit Update all copyright notices. 2022-01-11 10:54:10 +01:00
base Update all copyright notices. 2022-01-11 10:54:10 +01:00
bdf Clang-Tidy warning fixes. 2021-12-18 11:09:15 +01:00
bzip2 [bzip2] Reset bzip stream on any error. 2022-01-13 08:21:36 +01:00
cache Update all copyright notices. 2022-01-11 10:54:10 +01:00
cff Update all copyright notices. 2022-01-11 10:54:10 +01:00
cid Update all copyright notices. 2022-01-11 10:54:10 +01:00
dlg Update all copyright notices. 2022-01-11 10:54:10 +01:00
gxvalid Update all copyright notices. 2022-01-11 10:54:10 +01:00
gzip Update all copyright notices. 2022-01-11 10:54:10 +01:00
lzw Update all copyright notices. 2022-01-11 10:54:10 +01:00
otvalid Update all copyright notices. 2022-01-11 10:54:10 +01:00
pcf [pcf] Zero out the allocated properties. 2021-10-18 20:35:28 -04:00
pfr Update all copyright notices. 2022-01-11 10:54:10 +01:00
psaux Update all copyright notices. 2022-01-11 10:54:10 +01:00
pshinter Update all copyright notices. 2022-01-11 10:54:10 +01:00
psnames Update all copyright notices. 2022-01-11 10:54:10 +01:00
raster Update all copyright notices. 2022-01-11 10:54:10 +01:00
sdf Update all copyright notices. 2022-01-11 10:54:10 +01:00
sfnt [sfnt] Fix limit checks for `COLR` v1 ClipBoxes 2022-01-11 13:40:20 +02:00
smooth Update all copyright notices. 2022-01-11 10:54:10 +01:00
tools Update all copyright notices. 2022-01-11 10:54:10 +01:00
truetype Update all copyright notices. 2022-01-11 10:54:10 +01:00
type1 Update all copyright notices. 2022-01-11 10:54:10 +01:00
type42 [type42] Track how much type42 ttf data is available. 2022-01-11 14:58:18 -05:00
winfonts Update all copyright notices. 2022-01-11 10:54:10 +01:00