diff options
author | Tommi Hirvola <tommi@hirvola.fi> | 2024-03-04 12:56:30 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2024-03-04 23:50:58 +0100 |
commit | 95f22c53059ccd60ee701ccf2659dacd95e4e89a (patch) | |
tree | 5aa7ce5934a04364062d6b5151a949c4483dc75e /st.h | |
parent | 7473a8d1a57e5f9aba41b953f4e498c35e1c9dc5 (diff) | |
download | st-95f22c53059ccd60ee701ccf2659dacd95e4e89a.tar.gz st-95f22c53059ccd60ee701ccf2659dacd95e4e89a.tar.bz2 st-95f22c53059ccd60ee701ccf2659dacd95e4e89a.zip |
set upper limit for REP escape sequence argument
Previously, printf 'L\033[2147483647b' would call tputc('L') 2^31 times,
making st unresponsive. This commit allows repeating the last character
at most 65535 times in order to prevent freezing and DoS attacks.
Diffstat (limited to 'st.h')
0 files changed, 0 insertions, 0 deletions