Handle Z_BUF_ERROR in decompress_dynamic
(cherry picked from commit 293050a919
)
This commit is contained in:
parent
a29b834930
commit
5a54cdf4fd
1 changed files with 4 additions and 1 deletions
|
@ -237,7 +237,10 @@ int Compression::decompress_dynamic(PoolVector<uint8_t> *p_dst, int p_max_dst_si
|
|||
case Z_DATA_ERROR:
|
||||
case Z_MEM_ERROR:
|
||||
case Z_STREAM_ERROR:
|
||||
WARN_PRINT(strm.msg);
|
||||
case Z_BUF_ERROR:
|
||||
if (strm.msg) {
|
||||
WARN_PRINT(strm.msg);
|
||||
}
|
||||
(void)inflateEnd(&strm);
|
||||
p_dst->resize(0);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue