[dev] dwm 6.4 bug

From: spaceman <spaceman_AT_antispaceman.com>
Date: Tue, 25 Oct 2022 15:03:43 +0000

Hi,

While compiling dwm on slackware 15 I get the following (with _FORTIFY_SOURCE=3):

In file included from /usr/include/string.h:519,
                 from dwm.c:29:
In function 'strncpy',
    inlined from 'arrangemon' at dwm.c:400:2,
    inlined from 'arrange' at dwm.c:394:3,
    inlined from 'arrange' at dwm.c:384:1:
/usr/include/bits/string_fortified.h:95:10: warning: '__builtin_strncpy' specified bound 16 equals destination size [-Wstringop-truncation]
   95 | return __builtin___strncpy_chk (__dest, __src, __len,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 | __glibc_objsize (__dest));
      | ~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
    inlined from 'arrangemon' at dwm.c:400:2,
    inlined from 'arrange' at dwm.c:391:3:
/usr/include/bits/string_fortified.h:95:10: warning: '__builtin_strncpy' specified bound 16 equals destination size [-Wstringop-truncation]
   95 | return __builtin___strncpy_chk (__dest, __src, __len,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 | __glibc_objsize (__dest));
      | ~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
    inlined from 'setlayout' at dwm.c:1508:2:
/usr/include/bits/string_fortified.h:95:10: warning: '__builtin_strncpy' specified bound 16 equals destination size [-Wstringop-truncation]
   95 | return __builtin___strncpy_chk (__dest, __src, __len,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 | __glibc_objsize (__dest));

This was enough to stop me updating from 6.3.

Regards,
spaceman
Received on Tue Oct 25 2022 - 17:03:43 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 26 2022 - 15:24:08 CEST