An issue exists in libsixel 1.8.2. There is an integer overflow in the function sixel_encode_body at tosixel.c.
libsixel project libsixel 1.8.2