saitoha / libsixel

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

Add size check #92

Closed knok closed 4 years ago

knok commented 5 years ago

81 seems that caused by size_t overflow.

When invoke img2sixel with POC2, two variables width and height contain 67108864, so size = (size_t)(width * height), as a result , size = 0.