Uros Bizjak <ubiz...@gmail.com> writes:
> Hello!
>
> Current gcc fails bootstrap on alpha-linux-gnu with:
>
> /space/homedirs/uros/gcc-svn/trunk/gcc/hsa-dump.c: In function ‘void
> dump_hsa_symbol(FILE*, hsa_symbol*)’:
> /space/homedirs/uros/gcc-svn/trunk/gcc/hsa-dump.c:784:21: error: ‘%s’
> directive writing up to 71 bytes into a region of size 62
> [-Werror=format-overflow=]
>        sprintf (buf, "__%s_%i", hsa_seg_name (symbol->m_segment),
>                      ^~~~~~~~~
> /space/homedirs/uros/gcc-svn/trunk/gcc/hsa-dump.c:784:15: note:
> ‘sprintf’ output between 5 and 86 bytes into a destination of size 64
>        sprintf (buf, "__%s_%i", hsa_seg_name (symbol->m_segment),
>        ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>          symbol->m_name_number);
>          ~~~~~~~~~~~~~~~~~~~~~~
>
> suggesting that  a temporary sprintf buffer is too small.

You've probably already seen, sorry, but this was a false positive,
fixed by:

2018-01-10  Martin Sebor  <mse...@redhat.com>

        PR tree-optimization/83781
        * gimple-fold.c (get_range_strlen): Avoid treating arrays of pointers
        as string arrays.

Thanks,
Richard

Reply via email to