diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-05-26 11:59:32 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-05-26 12:11:03 +0000 |
| commit | a012c2fb3efbac49b4333a62cfd7cc1df9ee6aef (patch) | |
| tree | ac8ee9f262b87f5c192e7a4f36251e27ffb771fd /scripts/benchmark.py | |
| parent | Merge branch 'fix-iso-left-tab' (diff) | |
term: fix crash when an OSC-8 URI wraps around the scrollback
Long OSC-8 URIs, that are split up over multiple rows, are handled by
emitting one URI range on each row the URL touches.
This was done by initializing a row index variable, and then
incrementing it each loop iteration.
This caused an out-of-bounds array access when the row index reached
the maximum number of scrollback lines.
The fix is simple: make sure the row index variable wraps around,
instead of incrementing without any bounds.
Closes #552
Diffstat (limited to 'scripts/benchmark.py')
0 files changed, 0 insertions, 0 deletions
