mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Initialize the last byte of the dictionary to zero so that
lz_get_byte(lz, 0) returns zero. This was broken by
1a3b218598
.
This commit is contained in:
parent
5ead36cf7f
commit
f310c50286
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue