mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Another bug fix for flush marker detection.
This commit is contained in:
parent
fc67f79f60
commit
d160ee3259
1 changed files with 9 additions and 1 deletions
|
@ -493,9 +493,17 @@ decode_real(lzma_coder *restrict coder, const uint8_t *restrict in,
|
||||||
|
|
||||||
has_produced_output = false;
|
has_produced_output = false;
|
||||||
|
|
||||||
|
// We know that we have enough input to call
|
||||||
|
// this macro, because it is tested at the
|
||||||
|
// end of decode_dummy().
|
||||||
|
rc_normalize();
|
||||||
|
|
||||||
rc_reset(rc);
|
rc_reset(rc);
|
||||||
|
|
||||||
|
// If we don't have enough input here, we jump
|
||||||
|
// out of the loop without calling rc_normalize().
|
||||||
if (!rc_read_init(&rc, in, &in_pos_local, in_size))
|
if (!rc_read_init(&rc, in, &in_pos_local, in_size))
|
||||||
goto out; // Avoiding rc_normalize()
|
goto out;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue