8000 Repaired archive can be incomplete · Issue #226 · ANSSI-FR/MLA · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Repaired archive can be incomplete #226

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

Open
extiop opened this issue Oct 18, 2024 · 0 comments
Open

Repaired archive can be incomplete #226

extiop opened this issue Oct 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@extiop
Copy link
Contributor
extiop commented Oct 18, 2024

The repair action with mlar uses brotli::BrotliDecompressStream in Read impl for CompressionLayerFailSafeReader. While needing more input (brotli::BrotliResult::NeedsMoreInput) brotli can return an output_offset of 0 which is considered as there is no more bytes to read in the current implementation of MLA (compress layer, notably the read()). This is problematic as it can cut some archives before their end.

One workaround is to read again (could be multiple times) but it's only a workaround.

Two possible solutions could be:

@extiop extiop added the bug Something isn't working label Oct 18, 2024
@extiop extiop mentioned this issue Dec 17, 2024
@extiop extiop added this to the mla v1.5.0 milestone Feb 21, 2025
@extiop extiop removed this from the mla v1.5.0 milestone Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0