We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80d8f7c commit 9e2921fCopy full SHA for 9e2921f
zlib/inflate.c
@@ -739,10 +739,10 @@ int flush;
739
copy = state->length;
740
if (copy > have) copy = have;
741
if (copy) {
742
- len = state->head->extra_len - state->length;
743
if (state->head != Z_NULL &&
744
state->head->extra != Z_NULL &&
745
- len < state->head->extra_max) {
+ (len = state->head->extra_len - state->length) <
+ state->head->extra_max) {
746
zmemcpy(state->head->extra + len, next,
747
len + copy > state->head->extra_max ?
748
state->head->extra_max - len : copy);
0 commit comments