On Mon, Feb 20, 2017 at 04:44:10PM +0100, Marek Polacek wrote:
> We crash here becase ubsan_type_descriptor isn't able to handle arrays
> such as int[0:], i.e. where the TYPE_MAX_VALUE of the domain is missing.
> Fixed by checking that first, which means we'd print '*' instead if it
> is missing.
> 
> Bootstrapped/regtested on x86_64-linux, ok for trunk/6?
> 
> 2017-02-20  Marek Polacek  <pola...@redhat.com>
> 
>       PR sanitizer/79558
>       * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
> 
>       * c-c++-common/ubsan/bounds-14.c: New test.

Ok, thanks.

        Jakub

Reply via email to