--- infback.c.orig 2003-08-12 01:48:06 +0200 +++ infback.c.orig 2004-08-25 12:37:07 +0200 @@ -434,6 +434,9 @@ } } + if (state->mode == BAD) + break; + /* build code tables */ state->next = state->codes; state->lencode = (code const FAR *)(state->next); --- inflate.c.orig 2003-10-26 07:15:36 +0100 +++ inflate.c.orig 2004-08-25 12:37:07 +0200 @@ -861,6 +861,9 @@ } } + if (state->mode == BAD) + break; + /* build code tables */ state->next = state->codes; state->lencode = (code const FAR *)(state->next);