audk/BaseTools/Source/C/BrotliCompress
Chen, Christine 9cd854e19d BaseTools/Brotli: Fix compressed data loss issue
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2946

Currenly, when using the Brotli tool to compress data, the output
compressed binary file does not record complete compressed data
when size of input file is too large, which makes the data loss and
will trigger decompress-check issue.

The Brotli document mentioned:
The brotli tool use BrotliEncoderCompressStream method to compresses
input stream to output stream. Under some circumstances (e.g. lack of
output stream capacity) the BrotliEncoderOperation would require
several calls to BrotliEncoderCompressStream. The method must be
called again until both input stream is depleted and encoder has no
more output after the method is called.

This patch fixes this issue based on the Brotli document.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Yuwei Chen <yuwei.chen@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
2021-05-17 03:45:13 +00:00
..
brotli@666c3280cc BaseTools: Make brotli a submodule 2020-04-16 01:58:38 +00:00
BrotliCompress.c BaseTools/Brotli: Fix compressed data loss issue 2021-05-17 03:45:13 +00:00
GNUmakefile BaseTools: Fix BrotliCompress tool issue 2020-11-13 06:23:56 +00:00
Makefile BaseTools: Fix BrotliCompress tool issue 2020-11-13 06:23:56 +00:00