[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Older Lua versions no longer compile under current gcc
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 9 Jan 2018 15:18:12 -0200
> It seems that the "buffer overflow" is due to the compiler thinking no space has been allocated to (*node)->ts.str.
Actually, ts.str is declared as char str[1] and is the last member. So
it seems that gcc 5.4 does not like the trick of using this address
for a longer string.