I've just started testing PNG decoder library.
For paletted image files, the library extracts grayscale-like palettes. That is, all three channels are exactly the same.
Looking into the machine code, I could find a bug - probably caused by unmodified copy and paste - while writing palette's color channels.
I could manage to hotfix this, but a patched version would be necessary for innocent people.