mirror of
https://github.com/tmux/tmux.git
synced 2024-10-31 22:58:49 +00:00
Do not allow combined UTF-8 characters that are too long, GitHub issue
3729.
This commit is contained in:
parent
36e1ac6556
commit
fdf465925e
@ -2025,6 +2025,10 @@ screen_write_combine(struct screen_write_ctx *ctx, const struct grid_cell *gc)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Check if this combined character would be too long. */
|
||||||
|
if (last.data.size + ud->size > sizeof last.data.data)
|
||||||
|
return (0);
|
||||||
|
|
||||||
/* Combining; flush any pending output. */
|
/* Combining; flush any pending output. */
|
||||||
screen_write_collect_flush(ctx, 0, __func__);
|
screen_write_collect_flush(ctx, 0, __func__);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user