aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-07-22 08:44:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-07-22 08:44:33 +0000
commit87e4004960265494fcab21c71fff48b4f8b0af33 (patch)
treeb463c9e31ad43b47fec8ae07cfee91c59cc43e00 /render.c
parentgrid: reflow: require col count > 0 when skipping line truncation (diff)
csi: clamp color index for ‘CSI 38/48 ; 5 ; idx m’ sequences
Indexed color values are stored in the cell attributes as color indices (into the 256-color table). However, the index from the CSI was not validated in any way, meaning you can do something like this: echo -e ‘\e[38:5:1024m CRASH \e[m’ and foot will crash on an out-of-bounds access. Fix by clamping the color index. Closes #1111
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions