[PATCH] Strip array types when getting the typename (PR sanitizer/59667)

Jeff Law law@redhat.com
Tue Jan 7 21:29:00 GMT 2014


On 01/07/14 06:59, Marek Polacek wrote:
> In case we're dealing with (*)[N] types, we should strip the
> ARRAY_TYPEs prior to getting the type name.  Otherwise we segv, since
> the DECL_NAME is NULL.
>
> Regtested on x86_64-linux, ok for trunk?
>
> 2014-01-07  Marek Polacek  <polacek@redhat.com>
>
> 	PR sanitizer/59667
> 	* ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
> testsuite/
> 	* c-c++-common/ubsan/pr59667.c: New test.
OK.
Jeff



More information about the Gcc-patches mailing list