mirror of
https://git.tukaani.org/xz.git
synced 2025-02-21 07:58:27 +00:00
Initialize the last byte of the dictionary to zero so that
lz_get_byte(lz, 0) returns zero. This was broken by 1a3b21859818e4d8e89a1da99699233c1bfd197d.
This commit is contained in:
parent
5ead36cf7f
commit
f310c50286
@ -433,6 +433,7 @@ lzma_lz_decoder_reset(lzma_lz_decoder *lz, lzma_allocator *allocator,
|
||||
lz->pos = 0;
|
||||
lz->start = 0;
|
||||
lz->end = dict_real_size;
|
||||
lz->dict[dict_real_size - 1] = 0;
|
||||
lz->is_full = false;
|
||||
lz->eopm_detected = false;
|
||||
lz->next_finished = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user