Skip to content
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

LZMA Corrupted Input Data #72

Open
MannikJ opened this issue Jul 30, 2024 · 0 comments
Open

LZMA Corrupted Input Data #72

MannikJ opened this issue Jul 30, 2024 · 0 comments

Comments

@MannikJ
Copy link

MannikJ commented Jul 30, 2024

I'm struggling to decompress lzma data using this library. The data comes as part of proprietary file.
I'll show you three examples of how I get the data that needs to be decompressed:
I'll add the first 16 bytes so you can see header and the start of the raw data:

1. 5d 00 00 00 04 00 00 68 80 f9 08 72 b3
2. 5d 00 00 00 04 00 38 8f 41 4c 35 9a 6a
3. 5d 00 00 00 04 00 00 68 9a a5 37 83 51

I know that I can successfully decompress this using lzma utility on ubuntu only when I add the decompressed size (real size or -1) at offset 5. I can also use this approach to decompress it using another js package. This is in fact what I have been doing until now. However, the performance is very bad and its not very well maintained as well, that's why I'm trying to migrate.

But when passing this to libarchive.js it will not even recognize that it is compressed using lzma.

So how am I supposed to pass the data in this scenario?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant