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
1 changed files with 1 additions and 0 deletions

View File

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