Commit 8840af09 authored by Francois Cartegnie's avatar Francois Cartegnie

stream_filter: rar: reject if rar is compressed

parent 1d22c247
...@@ -72,8 +72,8 @@ int RarStreamOpen(vlc_object_t *object) ...@@ -72,8 +72,8 @@ int RarStreamOpen(vlc_object_t *object)
int count; int count;
rar_file_t **files; rar_file_t **files;
const int64_t position = stream_Tell(s->p_source); const int64_t position = stream_Tell(s->p_source);
if (RarParse(s->p_source, &count, &files, false) && if ((RarParse(s->p_source, &count, &files, false) &&
RarParse(s->p_source, &count, &files, true ) ) RarParse(s->p_source, &count, &files, true )) || count == 0 )
{ {
stream_Seek(s->p_source, position); stream_Seek(s->p_source, position);
msg_Err(s, "Invalid or unsupported RAR archive"); msg_Err(s, "Invalid or unsupported RAR archive");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment