Wrong magic for bzip2 #3

Open
opened 6 years ago by SlavekB · 1 comments
Owner

From Antonio Diaz Diaz

Line 1421 of 'krArc/krarc.cpp' and line 650 of
'krusader/VFS/krarchandler.cpp' contain wrong magic for bzip2. The fourth byte codes the compression level '1' to '9' (\x31 to \x39). The current string only matches files compressed at level '9' (\x39).

   {"bzip2",0, "\x42\x5a\x68\x39\x31" },
**From Antonio Diaz Diaz** Line 1421 of 'krArc/krarc.cpp' and line 650 of 'krusader/VFS/krarchandler.cpp' contain wrong magic for bzip2. The fourth byte codes the compression level '1' to '9' (\x31 to \x39). The current string only matches files compressed at level '9' (\x39). ``` {"bzip2",0, "\x42\x5a\x68\x39\x31" }, ```
SlavekB added the SL/major label 6 years ago
MicheleC removed the SL/major label 6 years ago
Owner

The magic number is indeed wrong, but does not seem to prevent Krusader from opening bzip2 archives with compression level different from 9.

The magic number is indeed wrong, but does not seem to prevent Krusader from opening bzip2 archives with compression level different from 9.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/krusader#3
Loading…
There is no content yet.