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:
Jacques Vidrine 2004-08-26 19:37:06 +00:00
parent 85231d66d4
commit 521adbdfc7
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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);