commit 93d387b7680be51d1ee1ff51bf1f886c91f24f1d
parent 0252b96eb9149c3ba3d5ade117247ac0008c0c8e
Author: Emmanuel Marty <emmanuel@fgl.com>
Date: Sat, 10 Oct 2020 12:51:04 +0200
Remove unreachable code
Diffstat:
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/lib/em_inflate.c b/lib/em_inflate.c
@@ -603,13 +603,8 @@ static size_t em_inflate_decompress_block(em_lsb_bitreader_t *pBitReader, int nD
nLiteralsRevSymbolTable[i] = em_inflate_matchlen_code[index];
}
else {
- if (n < NLITERALSYMS) {
- /* Handle 286 and 287 codes, used for constructing a complete canonical tree, present in static huffman tables but not used */
- nLiteralsRevSymbolTable[i] = 0;
- }
- else {
- return -1;
- }
+ /* Handle 286 and 287 codes, used for constructing a complete canonical tree, present in static huffman tables but not used */
+ nLiteralsRevSymbolTable[i] = 0;
}
}
}