You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Handle Z_BUF_ERROR in decompress_dynamic
(cherry picked from commit 293050a919)
This commit is contained in:
committed by
Rémi Verschelde
parent
a29b834930
commit
5a54cdf4fd
@@ -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:
|
||||
case Z_BUF_ERROR:
|
||||
if (strm.msg) {
|
||||
WARN_PRINT(strm.msg);
|
||||
}
|
||||
(void)inflateEnd(&strm);
|
||||
p_dst->resize(0);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user