From: Joseph Sutton Date: Mon, 7 Mar 2022 07:31:33 +0000 (+1300) Subject: compression: Remove redundant bounds check X-Git-Tag: talloc-2.3.4~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=417e0c914fdb64c58631e3dd862f704ce53dfeed;p=thirdparty%2Fsamba.git compression: Remove redundant bounds check Signed-off-by: Joseph Sutton Reviewed-by: Douglas Bagnall --- diff --git a/lib/compression/lzxpress.c b/lib/compression/lzxpress.c index 18e4903392b..9b059f99846 100644 --- a/lib/compression/lzxpress.c +++ b/lib/compression/lzxpress.c @@ -137,7 +137,6 @@ ssize_t lzxpress_compress(const uint8_t *uncompressed, } } else { match_len = best_len; - CHECK_OUTPUT_BYTES(sizeof(uint16_t)); match_len -= 3; best_offset -= 1;