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: [C PATCH] Don't crash on null param (PR c/65066)


On Mon, Feb 16, 2015 at 12:05:06PM +0100, Marek Polacek wrote:
> The CUR_PARAM can be null at this place, so check for that.
> 
> I had hoped that extra testing the original patch by running the C testsuite
> with -Wformat=2 enabled would detect such a case, but apparently not. :(
> 
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
> 
> 2015-02-16  Marek Polacek  <polacek@redhat.com>
> 
> 	PR c/65066
> 	* c-format.c (check_format_types): Handle null param.
> 
> 	* gcc.dg/pr65066.c: New test.

Ok, thanks.

	Jakub


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