]> wimlib.net Git - wimlib/commitdiff
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 f2a0603370ec94f68a2386e051f1d2052c879351..9c5d48662883baa0cb8edb4805f0ec27e0d3b90a 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;
                }