Skip to content
Snippets Groups Projects
Commit 64888ed1 authored by Johan Gunnarsson's avatar Johan Gunnarsson Committed by Steve Lhomme
Browse files

archive: Add support for RAR 5.0 format

libarchive 3.4.0 adds support for RAR 5.0. See
https://www.rarlab.com/technote.htm#rarsign

 for description of signatures.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 059f6f56)
parent 47e6c1b7
No related branches found
No related tags found
1 merge request!6101[3.0] backport stream_extractor/archive fixes
......@@ -454,7 +454,10 @@ static int probe( stream_t* source )
} const magicbytes[] = {
/* keep heaviest at top */
{ 257, 5, "ustar" }, //TAR
{ 0, 7, "Rar!\x1A\x07" }, //RAR
#if ARCHIVE_VERSION_NUMBER >= 3004000
{ 0, 8, "Rar!\x1A\x07\x01" }, //RAR5.0
#endif
{ 0, 7, "Rar!\x1A\x07" }, //RAR4.x
{ 0, 6, "7z\xBC\xAF\x27\x1C" }, //7z
{ 0, 4, "xar!" }, //XAR
{ 0, 4, "PK\x03\x04" }, //ZIP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment