mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-01-05 08:00:05 +01:00
Avoid crash from corrupt archive reading matches beyond end of stream.
This commit is contained in:
parent
1cf4460412
commit
3f375385a5
2
stream.c
2
stream.c
|
|
@ -1567,9 +1567,9 @@ static int fill_buffer(rzip_control *control, struct stream_info *sinfo, int str
|
|||
stream_thread_struct *st;
|
||||
uchar c_type, *s_buf;
|
||||
|
||||
dealloc(s->buf);
|
||||
if (s->eos)
|
||||
goto out;
|
||||
dealloc(s->buf);
|
||||
fill_another:
|
||||
if (unlikely(ucthread[s->uthread_no].busy))
|
||||
failure_return(("Trying to start a busy thread, this shouldn't happen!\n"), -1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue