How malloc broke Serenity's JPGLoader, or: how to win the lottery - sin-ack's writings
I got the chance to investigate an interesting bug in SerenityOS this week. It was related to the decoding of JPG images in the operating system. For some reason, when a JPG image is viewed, it comes out like this: Lenna, showing up with incorrect colors. Weird, huh? Also seems like a simple confusi...
Hasnain says:
Great little debugging story. Also a very surprising set of circumstances that caused it.
“Sometimes the simplest problems might point at big mistakes within. I could’ve probably fixed this by just swapping the order of the arguments right then and there, and it would’ve worked; until someone else came along and changed the order again. Thankfully, now we will be able to look at tubas with correct colors in peace.”
Posted on 2021-06-03T03:22:45+0000