This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 Polacek  <polacek@redhat.com>
> 
> 	* c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
> 	TYPE_MAX_VALUE is NULL.
> 
> 	* gcc.dg/ubsan/bounds-1.c: New test.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]