未验证 提交 0f847b04 编写于 作者: O openharmony_ci 提交者: Gitee

!46 【3.1-Release】【安全扫描】【必现】组件zlib扫描发现新增漏洞CVE-2022-37434

Merge pull request !46 from 喻腾傲/OpenHarmony-3.1-Release
...@@ -759,8 +759,9 @@ int flush; ...@@ -759,8 +759,9 @@ int flush;
if (copy > have) copy = have; if (copy > have) copy = have;
if (copy) { if (copy) {
if (state->head != Z_NULL && if (state->head != Z_NULL &&
state->head->extra != Z_NULL) { state->head->extra != Z_NULL &&
len = state->head->extra_len - state->length; (len = state->head->extra_len - state->length) <
state->head->extra_max) {
zmemcpy(state->head->extra + len, next, zmemcpy(state->head->extra + len, next,
len + copy > state->head->extra_max ? len + copy > state->head->extra_max ?
state->head->extra_max - len : copy); state->head->extra_max - len : copy);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册