-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readall() raises Bad7zFile: CRC32 error #359
Comments
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
ko.7z has following header properties;
|
When looking into 'EventConsumer.log' property, it is weird... A following values means the file has a stream of 1 byte but extracted file size is zero
but definition say, there is no stream of packed data.
These are contradicted. |
The file entries by 7z command is
|
@DoNck How do you made data you produce the issue? |
Hi @miurahr, thank you for your quick support. |
Hi all !
From the above output, the CRC32 are valid for all the non-empty files, but they are missing for empty files (4 digests for 7 seven files) Line 1264 in f579fc6
The CRC32 are still valid but offsetted. We will be investigating our usage of the 7z library in DFIR-ORC/dfir-orc#49, but maybe there is something we are (both) missing in the handling of empty files and their CRC32 ? What do you think @miurahr ? |
Hi, are there any update regarding this situation ? Best regards |
This is very corner case and difficult to analyze. @DoNck If you have any findings, comments are welcome! |
Hi, |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Describe the bug
readall() raises Bad7zFile: CRC32 error
To Reproduce
Steps to reproduce the behavior:
python python_7z.py ok.7z
script should run fine and list the content found in the provided nested archive:
python python_7z.py ko.7z
script fails instead of listing content:
Expected behavior
List (nested) archive(s) content recursively.
Environment (please complete the following information):
Test data(please attach in the report):
ok.7z and ko.7z are attached within the zip file, along the python script (7z not allowed on github uploads).
Additional context
Both sample archives extract fine from 7z-FM 19.00 (x86).
The text was updated successfully, but these errors were encountered: