Skip to content

Commit 9e2921f

Browse files
committed
A fix for the zlib fix.
1 parent 80d8f7c commit 9e2921f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zlib/inflate.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -739,10 +739,10 @@ int flush;
739739
copy = state->length;
740740
if (copy > have) copy = have;
741741
if (copy) {
742-
len = state->head->extra_len - state->length;
743742
if (state->head != Z_NULL &&
744743
state->head->extra != Z_NULL &&
745-
len < state->head->extra_max) {
744+
(len = state->head->extra_len - state->length) <
745+
state->head->extra_max) {
746746
zmemcpy(state->head->extra + len, next,
747747
len + copy > state->head->extra_max ?
748748
state->head->extra_max - len : copy);

0 commit comments

Comments
 (0)