--- infback.c.orig	2003-08-11 18:48:06.000000000 -0500
+++ infback.c	2004-10-03 21:31:20.000000000 -0500
@@ -434,6 +434,9 @@
                 }
             }
 
+            /* handle error breaks in while */
+            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 01:15:36.000000000 -0500
+++ inflate.c	2004-11-30 17:51:14.000000000 -0600
@@ -861,6 +861,9 @@
                 }
             }
 
+            /* handle error breaks in while */
+            if (state->mode == BAD) break;
+
             /* build code tables */
             state->next = state->codes;
             state->lencode = (code const FAR *)(state->next);
--- contrib/infback9/infback9.c.orig	2003-09-14 10:49:53.000000000 -0500
+++ contrib/infback9/infback9.c	2004-10-03 21:00:57.000000000 -0500
@@ -430,6 +430,9 @@
                 }
             }
 
+            /* handle error breaks in while */
+            if (mode == BAD) break;
+
             /* build code tables */
             state->next = state->codes;
             lencode = (code const FAR *)(state->next);
