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?
Uninitialised memory causing decode failure
we recently stumbled upon an image which failed decoding with a message saying "Codec does not support the image's color transformation" (This is charLS' error UnsupportedColorTransform). Some printf-debugging figured out that the colorTransform was
set to 0xCCCCCCCC. Some more debugging figured out that this was due to uninitialized memory.
The attached patch makes JpegMarkerReader zero out its JlsParameters instance before using it. As far as I can tell, this is the only place were a JlsParameters instance is constructed without getting assigned values from elsewhere. At first, I wanted to add
a suitable default constructor to JlsParameters, but since this is in interface.h, this isn't possibly.
Feel free to come up with a less ugly patch for this issue (and perhaps even a comment explaining why this is necessary?).