mirror of
https://github.com/tmux/tmux.git
synced 2026-10-15 16:04:34 +00:00
Ignore stray characters in SIXEL data instead of discarding the image. Regression test included.
This commit is contained in:
@@ -482,10 +482,8 @@ sixel_parse(const char *buf, size_t len, u_int p1, u_int p2, u_int cell_w,
|
||||
si->dx = 0;
|
||||
break;
|
||||
default:
|
||||
if (ch < 0x20)
|
||||
break;
|
||||
if (ch < 0x3f || ch > 0x7e)
|
||||
goto bad;
|
||||
break;
|
||||
if (sixel_parse_write(si, ch - 0x3f) != 0) {
|
||||
log_debug("%s: width limit reached", __func__);
|
||||
goto bad;
|
||||
|
||||
Reference in New Issue
Block a user