From de32a2d74948e13e4d8ec17263a31e2c3ae900b1 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sun, 20 Nov 2011 08:43:46 -0800 Subject: [PATCH] Remove code from inflate.c and infback.c that is impossible to execute. During coverage testing it was discovered that these two lines could never pull more bits, since the immediately preceding for loop assures that all of the code's bits are already pulled. --- infback.c | 1 - inflate.c | 1 - 2 files changed, 2 deletions(-) diff --git a/infback.c b/infback.c index 5462952..c026485 100644 --- a/infback.c +++ b/infback.c @@ -403,7 +403,6 @@ void FAR *out_desc; PULLBYTE(); } if (here.val < 16) { - NEEDBITS(here.bits); DROPBITS(here.bits); state->lens[state->have++] = here.val; } diff --git a/inflate.c b/inflate.c index 214bf26..6b0ebbf 100644 --- a/inflate.c +++ b/inflate.c @@ -944,7 +944,6 @@ int flush; PULLBYTE(); } if (here.val < 16) { - NEEDBITS(here.bits); DROPBITS(here.bits); state->lens[state->have++] = here.val; } -- GitLab