There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
CompressImage corrupts the heap
Squish.CompressImage has been hard coded to allocate a byte array large enough for a 4 by 4 pixel image. Attempting to compress an image larger than this can cause a FatalExecutionEngineError and crash the process.
Line 219 of Squish.cs:
byte compressedData = new byte[GetStorageRequirements(4, 4, flags)];
Replacing the 4s with width and height seems to fix the problem.