fix buffer overflow when handling long composed input
commite5e959835b195c023d1f685ef4dbbcfc3b5120b2
authorHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 25 Oct 2022 15:11:11 +0000 (25 17:11 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 25 Oct 2022 15:11:11 +0000 (25 17:11 +0200)
treeb289ec06a3774611210e1f2a5dc1581b1d3cdae6
parent68d1ad9b54e952e3079356aeab8ab37e44c56c2c
fix buffer overflow when handling long composed input

To reproduce the issue:

"
If you already have the multi-key enabled on your system, then add this line
to your ~/.XCompose file:

[...]
<question> <T> <E> <S> <T> <question> :
"1234567890123456789012345678901234567890123456789012345678901234567890"
"

Reported by and an initial patch by Andy Gozas <andy@gozas.me>, thanks!

Adapted the patch, for now st (like dmenu) handles a fixed amount of composed
characters, or otherwise ignores it. This is done for simplicity sake.
x.c