What’s the toughest bug you ever found and fixed? [closed]

A jpeg parser, running on a surveillance camera, which crashed every time the company’s CEO came into the room.

100% reproducible error.

I kid you not!

This is why:

For you who doesn’t know much about JPEG compression – the image is kind of broken down into a matrix of small blocks which then are encoded using magic etc.

The parser choked when the CEO came into the room, because he always had a shirt with a square pattern on it, which triggered some special case of contrast and block boundary algorithms.

Truly classic.

Leave a Comment