mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-18 06:46:23 -04:00
Merge branch 'crash-on-runaway-url'
This commit is contained in:
commit
7afc4c8037
2 changed files with 7 additions and 0 deletions
|
|
@ -53,6 +53,8 @@
|
||||||
URLs.
|
URLs.
|
||||||
* Double free of URL while removing duplicated and/or overlapping URLs
|
* Double free of URL while removing duplicated and/or overlapping URLs
|
||||||
in URL mode (https://codeberg.org/dnkl/foot/issues/627).
|
in URL mode (https://codeberg.org/dnkl/foot/issues/627).
|
||||||
|
* Crash when an unclosed OSC-8 URL ran into un-allocated scrollback
|
||||||
|
rows.
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
|
||||||
|
|
@ -654,6 +654,11 @@ tag_cells_for_url(struct terminal *term, const struct url *url, bool value)
|
||||||
c = 0;
|
c = 0;
|
||||||
|
|
||||||
row = term->grid->rows[r];
|
row = term->grid->rows[r];
|
||||||
|
if (row == NULL) {
|
||||||
|
/* Un-allocated scrollback. This most likely means a
|
||||||
|
* runaway OSC-8 URL. */
|
||||||
|
break;
|
||||||
|
}
|
||||||
row->dirty = true;
|
row->dirty = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue