mirror of
https://gitee.com/openharmony/third_party_freetype
synced 2025-02-17 08:38:06 +00:00
!47 security: Fix CVE-2022-37434
Merge pull request !47 from 施其昌/master
This commit is contained in:
commit
56b5b18fab
@ -769,9 +769,10 @@ int ZEXPORT inflate(
|
||||
copy = state->length;
|
||||
if (copy > have) copy = have;
|
||||
if (copy) {
|
||||
len = state->head->extra_len - state->length;
|
||||
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_max) {
|
||||
zmemcpy(state->head->extra + len, next,
|
||||
len + copy > state->head->extra_max ?
|
||||
state->head->extra_max - len : copy);
|
||||
|
Loading…
x
Reference in New Issue
Block a user