diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2026-06-12 16:21:51 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2026-06-12 16:21:51 +0000 |
| commit | 8b047852f3fcb26f4bc4c1dece0089e90cb645ee (patch) | |
| tree | e2023f8fdf6169e7f2549b905c9afe6469d51a3a /osc.c | |
| parent | sixel: fix NULL deref when using a shared palette and gamma-correct blending (diff) | |
osc: kitty text-size: bail out if text is zero-length
This fixes a crash further down, where we try to lookup an existing
compose sequence.
Closes #2364
Diffstat (limited to 'osc.c')
| -rw-r--r-- | osc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1149,6 +1149,9 @@ kitty_text_size(struct terminal *term, char *string) *text = '\0'; text++; + if (text[0] == '\0') + return; + char32_t *wchars = ambstoc32(text); if (wchars == NULL) return; |
