4 ms·
> the first person to discover that a PNG image with four bits-per-pixel and an alpha channel crashes the decoder We had one where a long comment in a PNG caus
by dunham 2y ago
> the first person to discover that a PNG image with four bits-per-pixel and an alpha channel crashes the decoder
We had one where a long comment in a PNG caused quadratic slowdown. I decompiled the library and fixed the issue (appending strings a char at a time and not reusing the stringbuilder).
And then a colleague pointed out that simply recompiling the decompiled file also fixed the issue. After digging in the JIT compiler source, I learned that it had code to handle this issue, but it was tuned to the exact output of a modern compiler.