This seems to happen to jpeg images broken is a very specific way.
Other software using libjpeg do not crash with such pictures.

In real-world usage the frequency of such files is very, very low (though it doesn't change the fact it should not crash).