saitoha / libsixel

A SIXEL encoder/decoder implementation derived from kmiya's sixel (https://github.com/saitoha/sixel).
MIT License
2.45k stars 82 forks source link

A jpeg causes img2sixel to crash with an integer overflow #168

Open DavidGriffith opened 2 years ago

DavidGriffith commented 2 years ago
$ sixel2png lolwut.jpg
runtime error: integer overflow
safe_addition_for_params: ingeger overflow detected.

And here's the image that provokes this error.

lolwut

No, I'm not kidding. I went through a few of my favorite images and img2sixel barfed on this one.