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

Bind output size during decompression #43

Closed
wants to merge 3 commits into from

Conversation

gbrovman
Copy link
Contributor

@gbrovman gbrovman commented Sep 5, 2023

During decompression, before writing the garbage data, bind the output to match the file plain text size. While this logic usually does nothing and seems unneeded, it matches the Lepton C++ implementation and solves a back-compat case for a JPEG file with trailing restarts that were missing in the original JPG.

@gbrovman gbrovman closed this Sep 7, 2023
@gbrovman
Copy link
Contributor Author

gbrovman commented Sep 7, 2023

Abandoning in a favor of Kristof's alternative solution

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

Successfully merging this pull request may close these issues.

2 participants