Arthur Williams via Tinycc-devel wrote:
On Thu, Mar 10, 2022 at 10:27:25AM -0800, Elijah Stone wrote:
Hi,
The following code results in an initialiser overflow ICE on the latest
version of tcc (917aad3), amd64 linux.
#include
#include
typedef struct { char b[2]; } Barb;
Barb *f(Barb x,
On Thu, Mar 10, 2022 at 10:27:25AM -0800, Elijah Stone wrote:
> Hi,
>
> The following code results in an initialiser overflow ICE on the latest
> version of tcc (917aad3), amd64 linux.
>
> #include
> #include
>
> typedef struct { char b[2]; } Barb;
>
> Barb *f(Barb x, Barb y) {
> return
Hi,
The following code results in an initialiser overflow ICE on the latest
version of tcc (917aad3), amd64 linux.
#include
#include
typedef struct { char b[2]; } Barb;
Barb *f(Barb x, Barb y) {
return memcpy(malloc(2*sizeof(Barb)), &(Barb[]){x,y}, 2*sizeof(Barb));
}
Note: if I