CatacombSDL icon indicating copy to clipboard operation
CatacombSDL copied to clipboard

Levels decompression has two bugs

Open 64kramsystem opened this issue 2 years ago • 0 comments

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.

64kramsystem avatar Aug 22 '22 09:08 64kramsystem