On Fri, Dec 19, 2014 at 9:04 AM, David Mertens <[email protected]> wrote: > I agree with your interpretation, and fix. For reference, tcc_open_bf is > defined in libtcc.c. The two applicable lines are: > > int buflen = initlen ? initlen : IO_BUF_SIZE; > bf = tcc_malloc(sizeof(BufferedFile) + buflen); > > As presently defined, BufferedFile indicates that its last field is a string > with size IO_BUF_SIZE. But this way of allocating things looks like it's > allocating a struct with a flexible last field, so its size should be 1. > > If you apply your patch, do the tests pass?
On x86-64, no regression failure. lee _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
