Commit 6d7b439
Guard title truncation against narrow terminal widths
Prevent stack buffer underflow in InfoScreen_drawTitled() when the
terminal width is 2 columns or fewer, where COLS - 3 produces a
negative index into the title VLA.
Closes: GHSA-6f53-xw2h-ww59
Reported-by: Michał Majchrowicz (AFINE Team)
Reported-by: Marcin Wyczechowski (AFINE Team)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 544880e commit 6d7b439
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments