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  <pola...@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

Reply via email to