Avoid crash from corrupt archive reading matches beyond end of stream.

This commit is contained in:
Con Kolivas 2018-05-16 16:30:54 +10:00
parent 1cf4460412
commit 3f375385a5

View file

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