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

Fix Rocket decompression and make this compile with Visual Studio 2019. #32

Merged
merged 3 commits into from
Aug 9, 2024

Conversation

Clownacy
Copy link
Contributor

@Clownacy Clownacy commented Aug 9, 2024

I updated the copy of this in the shell extension. It compiles fine with MSYS2, but Visual Studio gets caught on some mistakes. This fixes them to get it working.

The Rocket decompression wasn't stopping at the last decompressed byte, advancing on until it exhausted all of the descriptor bits, causing garbage bytes to be produced past the end of the decompressed data.

It wasn't accounting for the output size in the header, causing it to
produce garbage data after the end of the decompressed data by
processing the unused descriptor bits in the last field that it read.
...this project is C++14.
@flamewing flamewing merged commit df4821a into flamewing:master Aug 9, 2024
11 checks passed
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