Re: Call for testing: OpenSSH 7.6

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Sat, Sep 23, 2017 at 06:33:39PM -0400, Joseph S Testa II wrote:
> fmt_scaled.c: In function ‘fmt_scaled’:
> fmt_scaled.c:269:52: warning: ‘%1lld’ directive output may be truncated
> writing between 1 and 17 bytes into a region of size between 0 and 5
> [-Wformat-truncation=]
>    (void)snprintf(result, FMT_SCALED_STRSIZE, "%lld.%1lld%c",
>                                                     ^~~~~
> fmt_scaled.c:269:46: note: directive argument in the range
> [-9007199254740992, 9007199254740991]
>    (void)snprintf(result, FMT_SCALED_STRSIZE, "%lld.%1lld%c",
>                                               ^~~~~~~~~~~~~~
> In file included from /usr/include/stdio.h:938:0,
>                  from /usr/include/resolv.h:64,
>                  from ../openbsd-compat/getrrsetbyname.h:59,
>                  from ../openbsd-compat/openbsd-compat.h:44,
>                  from ../includes.h:174,
>                  from fmt_scaled.c:41:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note:
> ‘__builtin___snprintf_chk’ output between 5 and 40 bytes into a destination
> of size 7
>    return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
>           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>         __bos (__s), __fmt, __va_arg_pack ());
>         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is https://bugzilla.mindrot.org/show_bug.cgi?id=2769.

-- 
Colin Watson                                       [cjwatson@xxxxxxxxxx]
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux