@mirabilos @regehr @roytam1 @AaronBallman @thephd @uecker As I said, the compiler is allowed to write into the padding, so you must ensure that the padding exists. So you should never allocate less bytes than the size. You could use the tools from P99 to do this, if that is the optimization that you code needs. But that's what it says, optimization, so probably much noise for nothing for most applications.
https://gustedt.wordpress.com/2011/03/14/flexible-array-member/