Re: [hackers] [st][patch] Increase the buffer size for escape sequences

From: Ingo Heimbach <IJ_H_AT_gmx.de>
Date: Sun, 23 Sep 2018 15:56:43 +0200

What is incorrect?

Am 23. September 2018 14:12:23 MESZ schrieb Hiltjo Posthuma <hiltjo_AT_codemadness.org>:
>On Sun, Sep 23, 2018 at 12:12:27PM +0200, Ingo Heimbach wrote:
>> Before this commit, long escape sequences (e.g. OSC 52) could be
>trimmed
>> due to a quite small escape sequence buffer. This commit increases
>the
>> escape sequence buffer from 128 to 1048576 UTF-8 characters.
>> ---
>>  st.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/st.c b/st.c
>> index 46c954b..e9d4536 100644
>> --- a/st.c
>> +++ b/st.c
>> _AT__AT_ -31,7 +31,7 @@
>>  /* Arbitrary sizes */
>>  #define UTF_INVALID   0xFFFD
>>  #define UTF_SIZ       4
>> -#define ESC_BUF_SIZ   (128*UTF_SIZ)
>> +#define ESC_BUF_SIZ   (1048576*UTF_SIZ)
>>  #define ESC_ARG_SIZ   16
>>  #define STR_BUF_SIZ   ESC_BUF_SIZ
>>  #define STR_ARG_SIZ   ESC_ARG_SIZ
>> --
>> 2.19.0
>>
>>
>
>This is incorrect.
>
>--
>Kind regards,
>Hiltjo
Received on Sun Sep 23 2018 - 15:56:43 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 23 2018 - 16:00:22 CEST