Yann Collet 637b2d7a24 fixed bug 44168
discovered by oss-fuzz

It's a bug in the test itself :
ZSTD_compressBound() as an upper bound of the compress size
only works for data compressed "normally".
But in situations where many flushes are forcefully introduced,
this creates many more blocks,
each of which has a potential to increase the size by 3 bytes.
In extreme cases (lots of small incompressible blocks), the expansion can go beyond ZSTD_compressBound().

This situation is similar when using the CompressSequences() API
with Explicit Block Delimiters.
In which case, each explicit block acts like a deliberate flush.
When employed by a fuzzer, it's possible to generate scenarios like the one described above,
with tons of incompressible blocks of small sizes,
thus going beyond ZSTD_compressBound().

fix : when using Explicit Block Delimiters, use a larger bound, to account for this scenario.
2022-01-29 16:36:20 -08:00
..
2021-09-20 14:46:43 -07:00
2021-09-01 15:56:33 -04:00
2021-09-20 14:46:43 -07:00
2021-12-14 23:47:57 +01:00
2022-01-21 13:55:41 -08:00
2022-01-21 13:55:41 -08:00
2022-01-11 13:19:16 -08:00
2020-03-26 17:02:06 -07:00
2021-12-08 13:18:41 -08:00
2021-12-08 15:05:17 -08:00
2022-01-29 16:36:20 -08:00