vt: limit maximum value of params in vt_param_get()

So that the value is clamped to the range [0, 0x7fffffff] and retains
the same value, regardless of whether it's interpreted as a signed or
unsigned integer.

Closes #522
This commit is contained in:
Craig Barnes 2021-05-16 19:38:00 +01:00
parent cf3eeff951
commit 2412d78268
2 changed files with 13 additions and 2 deletions

View file

@ -103,6 +103,8 @@
(https://codeberg.org/dnkl/foot/issues/503).
* Sixels with transparent bottom border being resized below the size
specified in _”Set Raster Attributes”_.
* Crash caused by certain CSI sequences with very large parameter
values (https://codeberg.org/dnkl/foot/issues/522).
### Security