1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

compression: lzxpress decompress empty string as empty string

This mirrors the behaviour of lzxpress_compress, which "encodes" an
empty string as an empty string.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2022-05-11 16:06:38 +12:00 committed by Andrew Bartlett
parent 1ca4449294
commit e36cb10b16
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -1 +0,0 @@
samba4.local.compression.lzxpress_round_trip