Files
wm4 e74ffab36e stream_libarchive: fix hangs when demuxer does out of bound seeks
This happened with a .flac file inside an archive. It tried to seek
beyond the end of the archive entry in a format where seeking isn't
supported. stream_libarchive handles these situations by skipping data.
But when the end of the archive is reached, archive_read_data() returns
0. While libarchive didn't bother to fucking document this, they do say
it's supposed to work like read(), so I guess a return value of 0 really
means EOF. So change the "< 0" to "<= 0". Also add some error logging.

The same file actually worked without out of bounds reads when
extracted, so there still might be something very wrong.

(cherry picked from commit 7e85dc2167)
2018-10-01 18:54:54 +03:00
..
2015-10-30 15:51:26 +01:00
2015-10-30 15:51:26 +01:00
2017-05-11 07:29:01 +02:00
2017-05-11 07:29:01 +02:00
2015-04-13 12:10:01 +02:00
2016-01-11 21:05:55 +01:00
2014-09-13 16:09:51 +02:00
2015-04-13 12:10:01 +02:00
2018-05-31 01:24:51 +03:00
2015-03-29 13:37:14 +02:00
2017-02-02 18:26:58 +01:00
2017-06-18 15:13:45 +02:00
2018-03-04 16:28:24 -08:00
2018-03-04 16:28:24 -08:00
2017-06-18 15:13:45 +02:00
2018-03-04 16:28:24 -08:00