diff --git a/lib/compression/lzxpress.c b/lib/compression/lzxpress.c index 288fa0bcba8..f7da9b817f9 100644 --- a/lib/compression/lzxpress.c +++ b/lib/compression/lzxpress.c @@ -218,6 +218,10 @@ ssize_t lzxpress_decompress(const uint8_t *input, uint32_t indicator, indicator_bit; uint32_t nibble_index; + if (input_size == 0) { + return 0; + } + output_index = 0; input_index = 0; indicator = 0; diff --git a/selftest/knownfail.d/lzexpress b/selftest/knownfail.d/lzexpress deleted file mode 100644 index a7dafdbaa33..00000000000 --- a/selftest/knownfail.d/lzexpress +++ /dev/null @@ -1 +0,0 @@ -samba4.local.compression.lzxpress_round_trip