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

!44 【LTS3.0】【安全扫描】【必现】组件zlib扫描发现新增漏洞CVE-2022-37434

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