Correct a denial-of-service vulnerability in zlib.
For reference, this bug was first reported at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=252253 Submitted by: "Dmitry V. Levin" <ldv@altlinux.org>
This commit is contained in:
parent
85231d66d4
commit
521adbdfc7
@ -434,6 +434,9 @@ void FAR *out_desc;
|
||||
}
|
||||
}
|
||||
|
||||
if (state->mode == BAD)
|
||||
break;
|
||||
|
||||
/* build code tables */
|
||||
state->next = state->codes;
|
||||
state->lencode = (code const FAR *)(state->next);
|
||||
|
@ -864,6 +864,9 @@ int flush;
|
||||
}
|
||||
}
|
||||
|
||||
if (state->mode == BAD)
|
||||
break;
|
||||
|
||||
/* build code tables */
|
||||
state->next = state->codes;
|
||||
state->lencode = (code const FAR *)(state->next);
|
||||
|
Loading…
x
Reference in New Issue
Block a user