martes, 12 de mayo de 2009

¿Cuál fue el error más difícil de encontrar?

Muy buena pregunta en Stackoverflow. Me robo la primer respuesta (al momento) para que empiecen a sufrir:

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.

Visto (y compartido) por Cerebrado en Pons Asinorum.

No hay comentarios.: