xpress_decode_match(): Allow lengths encoded in unnecessary bytes
authorEric Biggers <ebiggers3@gmail.com>
Fri, 21 Dec 2012 04:16:27 +0000 (22:16 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 21 Dec 2012 04:16:27 +0000 (22:16 -0600)
src/xpress-decompress.c

index f2a0603..9c5d486 100644 (file)
@@ -126,8 +126,6 @@ static int xpress_decode_match(unsigned huffsym, unsigned window_pos,
                                return ret;
 
                        match_len |= (ret << 8);
-                       if (match_len < 0xf)
-                               return -1;
                } else {
                        match_len += 0xf;
                }