aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-07-11 09:31:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-07-11 09:31:11 +0000
commitf030c87ee6b7f94e3704ae5c94667b7d46f30776 (patch)
tree1e58f8bfeff3ba19d6cb10d466c84142e03a4b88 /scripts
parentMerge branch 'crash-in-url-mode-remove-duplicates' (diff)
url-mode: abort when running into un-allocated scrollback memory
When tagging URL cells (in preparation for rendering URL mode), we loop the URL’s entire range, setting the `url` attribute of all cells, and dirtying the rows. It is possible to create URLs that are invalid, and wrap around the scrollback, even though the scrollback hasn’t yet been filled. For example, by starting an OSC-8 URL, moving the cursor, and then closing the OSC-8 URL. These URLs are invalid, but are still rendered just fine. “Fine” being relative - they will typically fill the entire screen. But at least that’s a very clear indication for the user that’s something is wrong. The problem is when we hit un-allocated scrollback rows. We didn’t check for NULL rows, and crashed. This has now been fixed.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions