mirror of
https://github.com/openharmony/third_party_zlib.git
synced 2026-08-26 21:32:10 -04:00
!100 merge fix_infback into master
Fix inflateBack() bug Created-by: zhang_hao_zheng Commit-by: zhang_hao_zheng Merged-by: openharmony_ci Description: ### 相关的Issue https://gitcode.com/openharmony/third_party_zlib/issues/220 ### 原因(目的、解决的问题等) Fix inflateBack() bug that would fail to detect a too far back. ### 描述(做了什么,变更了什么) https://github.com/madler/zlib/commit/09a1572aa624e5ddb6c075dc013880de70b1b9b9 ### 测试用例(新增、改动、可能影响的功能) See merge request: openharmony/third_party_zlib!100
This commit is contained in:
@@ -470,8 +470,6 @@ int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc,
|
||||
/* use inflate_fast() if we have enough input and output */
|
||||
if (have >= 6 && left >= 258) {
|
||||
RESTORE();
|
||||
if (state->whave < state->wsize)
|
||||
state->whave = state->wsize - left;
|
||||
inflate_fast(strm, state->wsize);
|
||||
LOAD();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user