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:
parent
a6f1d8a85e
commit
27360e09ca
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user