-
Notifications
You must be signed in to change notification settings - Fork 21
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
Command ended with error IOError Custom kind InvalidData #63
Comments
Hello, Thanks for reporting this. I've been able to reproduce it, using the same files (based on filenames). As a side note, I'll come back to you after investigating it. |
#68 should fixes it. Already created archive are still valid. Running a test similar to yours: $ ./target/release/mlar list -i my_archive.mla -k key
archlinux-2020.11.01-x86_64.iso
clear-33590-live-desktop.iso
pop-os_20.10_amd64_intel_1.iso
$ ./target/release/mlar cat -i my_archive.mla -k key archlinux-2020.11.01-x86_64.iso > arch.test.iso
$ sha512sum archlinux-2020.11.01-x86_64.iso arch.test.iso
a357d437c31a2c61758591ddfb0a4bf73b77537e56b9cde8db2e2ffa76a0813f8f9d20e80cdae3a8d433b81349d644fc94b05d4414506d1b60609af08d15f9fd archlinux-2020.11.01-x86_64.iso
a357d437c31a2c61758591ddfb0a4bf73b77537e56b9cde8db2e2ffa76a0813f8f9d20e80cdae3a8d433b81349d644fc94b05d4414506d1b60609af08d15f9fd arch.test.iso I also add a test (working on more than 32bits files) to avoid a regression on this situation later. |
The regression test should be checking the extraction of every file and the integrity of every file otherwise the risk of one corrupt file may occur and the error will not surface.
Please use b3sum rather than sha512sum as it is much faster and especially on larger files.
|
This is actually what the regression test is doing ( Line 2069 in 911ed7d
The sha512sum excerpt was only there to illustrate the fix. |
I ran the mlar command. It seemed have behaved correctly and created .mla file.
But when I went to list the .mla contents it gave and error:
As a result of this, using the mlar tool still doesn't inspire a level of confidence to use it for anything in production just yet.
The text was updated successfully, but these errors were encountered: