Re: [PATCH] Fix ubsan ICE with flexible array members

2014-07-15 Thread Jakub Jelinek
On Tue, Jul 15, 2014 at 01:01:10PM +0200, Marek Polacek wrote: > We were missing a check that the TYPE_MAX_VALUE is not NULL. > If it is, we ICE later when gimplifying the UBSAN_BOUNDS call arguments. > > Bootstrapped/regtested on x86_64-linux, ok for trunk? Ok, thanks. > > 2014-07-15 Marek Pol

[PATCH] Fix ubsan ICE with flexible array members

2014-07-15 Thread Marek Polacek
We were missing a check that the TYPE_MAX_VALUE is not NULL. If it is, we ICE later when gimplifying the UBSAN_BOUNDS call arguments. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2014-07-15 Marek Polacek * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if TYPE_