0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-06-30 22:19:29 -04:00

[draw] Avoid crashing in drawing sixel images

This commit is contained in:
Witold Filipczyk 2025-04-19 16:42:13 +02:00
parent a6f1d8a85e
commit 27360e09ca

View File

@ -454,6 +454,9 @@ draw_doc(struct session *ses, struct document_view *doc_view, int active)
int found = vs->plain;
if (!found) {
if (im.y >= doc_view->document->height) {
continue;
}
for (;x < data[im.y].length; x++) {
if (im.image_number == data[im.y].ch.chars[x].number) {
found = 1;