Commit 58d6e3bc authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Ignore files without their beginning in RAR archive.

(cherry picked from commit 1ac5b35ca17c3316a5cc1ef4ddda3dcd98f27de8)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5e5e66ad
......@@ -209,6 +209,8 @@ static int SkipFile(stream_t *s, int *count, rar_file_t ***file,
current = NULL;
if (!current) {
if (hdr->flags & RAR_BLOCK_FILE_HAS_PREVIOUS)
goto exit;
current = malloc(sizeof(*current));
if (!current)
goto exit;
......
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