Commit 8831d8b8 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

stream_filter: rar: reject if rar is compressed

(cherry picked from commit 8840af091352a619d12ddfa1f15f509f19b7699a)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c4bf85e5
...@@ -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