Skip to content
Snippets Groups Projects
Commit 059f6f56 authored by Johan Gunnarsson's avatar Johan Gunnarsson Committed by Jean-Baptiste Kempf
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>
parent 7610e688
No related branches found
No related tags found
No related merge requests found
Pipeline #10774 passed with stage
in 1 hour, 51 minutes, and 52 seconds
......@@ -453,7 +453,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