Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Levels decompression has two bugs #6

Open
64kramsystem opened this issue Aug 22, 2022 · 0 comments
Open

Levels decompression has two bugs #6

64kramsystem opened this issue Aug 22, 2022 · 0 comments

Comments

@64kramsystem
Copy link

The level decompression has two bugs:

  1. the RLE expand routine should halt the cycle when the threshold is reached on the input bytes, not output bytes; beside checking on the size of the output buffer will cause bogus data to be written (since reads will be performed over the intended limit), the last cycle may also write over the buffer
  2. there seems to be a bug in the original project - some levels expand to more than the allocated 4096 bytes; one of the levels expand to 4338 bytes.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant