Wrong contents of RAR volumes

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Wrong contents of RAR volumes

Post by *MVV »

Test 1: pack 1 file into multi-volume RAR, volume size must provide more than 2 volumes (e.g. 1000 bytes for 50 kB test file). Enter volume 2. TC shows empty archive. OK, it is correct, there is no files starting from that volume.

Test 2: do the same but protect file with password (don't encrypt file names). Enter volume 2. TC shows <Encrypted -> F5> but it should show empty volume instead (just like in the case above) because headers are not encrypted in the archive, only file contents is encrypted.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Actually you should still be able to unpack the entire archive set with F5 also from the higher archives. Can you try it?
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

If I press Alt+F9 from Nth volume, TC unpacks only the files that start from Nth and later volumes, not from previous ones. Tested with all kinds of archives (no password at all, encrypted only file contents, encrypted file contents and archive headers).

But I was talking about other thing. TC shouldn't show <Encrypted -> F5> item for volumes with unencrypted headers, it should show archive contents as for volumes w/o password protected files. E.g. 7-Zip shows archive contents correctly (shows a file but can't extract it because file starts in previous volume).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It probably does that because it sees that the file is encrypted, but doesn't contain any unencrypted file names.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Christian,
AFAIK main archive header contains special flag when all other headers are encrypted (MHD_PASSWORD flag for RARHeaderData.Flags member if you call RAROpenArchive function) so you can check it and show <Encrypted -> F5> only if this flag is set.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will consider it.
Author of Total Commander
https://www.ghisler.com
Post Reply