1
0
Fork 0
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:
Lasse Collin 2008-03-11 15:17:16 +02:00
parent 5ead36cf7f
commit f310c50286

View file

@ -433,6 +433,7 @@ lzma_lz_decoder_reset(lzma_lz_decoder *lz, lzma_allocator *allocator,
lz->pos = 0; lz->pos = 0;
lz->start = 0; lz->start = 0;
lz->end = dict_real_size; lz->end = dict_real_size;
lz->dict[dict_real_size - 1] = 0;
lz->is_full = false; lz->is_full = false;
lz->eopm_detected = false; lz->eopm_detected = false;
lz->next_finished = false; lz->next_finished = false;