X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fxpress-decompress.c;h=de395de96afeecd3cdf3ad83fc62cdab00e1a3f4;hp=f2a0603370ec94f68a2386e051f1d2052c879351;hb=4c16dabbfa70bc4c019463091acae1266f600113;hpb=31e7d901124217da4e02717f6b59ee437d15aef3 diff --git a/src/xpress-decompress.c b/src/xpress-decompress.c index f2a06033..de395de9 100644 --- a/src/xpress-decompress.c +++ b/src/xpress-decompress.c @@ -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; } @@ -144,15 +142,15 @@ static int xpress_decode_match(unsigned huffsym, unsigned window_pos, match_src = match_dest - match_offset; if (window_pos + match_len > window_len) { - ERROR("XPRESS decompression error: match of length %d " + ERROR("XPRESS decompression error: match of length %u " "bytes overflows window", match_len); return -1; } if (match_src < window) { - ERROR("XPRESS decompression error: match of length %d bytes " - "references data before window (match_offset = %d, " - "window_pos = %d)", match_len, match_offset, window_pos); + ERROR("XPRESS decompression error: match of length %u bytes " + "references data before window (match_offset = %u, " + "window_pos = %u)", match_len, match_offset, window_pos); return -1; }