[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luaX_token2str() error: buffer overflow 'luai_ctype_'
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 9 Sep 2020 09:22:13 -0300
> So, as the assumption is that 256 is impossible value, we can set up assert or condition to test that value.
The code already has this:
lua_assert(token == cast(unsigned char, token));