--- /tmp/glibc-master-output.txt 2017-09-10 20:15:41.383148903 -0700 +++ /tmp/glibc-new-fortify-output.txt 2017-09-10 20:15:33.396481772 -0700 @@ -43,12 +43,12 @@ from tst-chk2.c:2: In function ‘memcpy’, inlined from ‘do_test’ at tst-chk1.c:318:3: -../string/bits/string_fortified.h:34:10: warning: ‘__builtin___memcpy_chk’ writing 10 bytes into a region of size 9 overflows the destination [-Wstringop-overflow=] +../string/bits/string_fortified.h:48:10: warning: ‘__builtin___memcpy_chk’ writing 10 bytes into a region of size 9 overflows the destination [-Wstringop-overflow=] return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘memmove’, inlined from ‘do_test’ at tst-chk1.c:326:3: -../string/bits/string_fortified.h:40:10: warning: ‘__builtin___memmove_chk’ writing 9 bytes into a region of size 8 overflows the destination [-Wstringop-overflow=] +../string/bits/string_fortified.h:56:10: warning: ‘__builtin___memmove_chk’ writing 9 bytes into a region of size 8 overflows the destination [-Wstringop-overflow=] return __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/bits/strings_fortified.h:1:0, @@ -62,7 +62,7 @@ from tst-chk2.c:2: In function ‘bcopy’, inlined from ‘do_test’ at tst-chk1.c:334:3: -../string/bits/strings_fortified.h:25:3: warning: ‘__builtin___memmove_chk’ writing 9 bytes into a region of size 8 overflows the destination [-Wstringop-overflow=] +../string/bits/strings_fortified.h:34:3: warning: ‘__builtin___memmove_chk’ writing 9 bytes into a region of size 8 overflows the destination [-Wstringop-overflow=] (void) __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/bits/string_fortified.h:1:0, @@ -74,12 +74,12 @@ from tst-chk2.c:2: In function ‘mempcpy’, inlined from ‘do_test’ at tst-chk1.c:342:16: -../string/bits/string_fortified.h:48:10: warning: ‘__builtin___mempcpy_chk’ writing 5 bytes into a region of size 4 overflows the destination [-Wstringop-overflow=] +../string/bits/string_fortified.h:65:10: warning: ‘__builtin___mempcpy_chk’ writing 5 bytes into a region of size 4 overflows the destination [-Wstringop-overflow=] return __builtin___mempcpy_chk (__dest, __src, __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘memset’, inlined from ‘do_test’ at tst-chk1.c:350:3: -../string/bits/string_fortified.h:71:10: warning: ‘__builtin___memset_chk’ writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] +../string/bits/string_fortified.h:98:10: warning: ‘__builtin___memset_chk’ writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/bits/strings_fortified.h:1:0, @@ -93,7 +93,7 @@ from tst-chk2.c:2: In function ‘bzero’, inlined from ‘do_test’ at tst-chk1.c:358:3: -../string/bits/strings_fortified.h:31:3: warning: ‘__builtin___memset_chk’ writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] +../string/bits/strings_fortified.h:42:3: warning: ‘__builtin___memset_chk’ writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] (void) __builtin___memset_chk (__dest, '\0', __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/bits/string_fortified.h:1:0, @@ -105,12 +105,12 @@ from tst-chk2.c:2: In function ‘strncpy’, inlined from ‘do_test’ at tst-chk1.c:382:3: -../string/bits/string_fortified.h:106:10: warning: ‘__builtin___strncpy_chk’: specified bound 4 exceeds the size 3 of the destination [-Wstringop-overflow=] +../string/bits/string_fortified.h:140:10: warning: ‘__builtin___strncpy_chk’: specified bound 4 exceeds the size 3 of the destination [-Wstringop-overflow=] return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘stpncpy’, inlined from ‘do_test’ at tst-chk1.c:390:3: -../string/bits/string_fortified.h:120:12: warning: ‘__builtin___strncpy_chk’: specified bound 5 exceeds the size 4 of the destination [-Wstringop-overflow=] +../string/bits/string_fortified.h:155:12: warning: ‘__builtin___strncpy_chk’: specified bound 5 exceeds the size 4 of the destination [-Wstringop-overflow=] return __stpncpy_chk (__dest, __src, __n, __bos (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../libio/stdio.h:862:0, @@ -119,11 +119,9 @@ from tst-chk2.c:2: In function ‘snprintf’, inlined from ‘do_test’ at tst-chk1.c:403:3: -../libio/bits/stdio2.h:64:10: warning: ‘__builtin___snprintf_chk’: specified bound 3 exceeds the size 2 of the destination [-Wstringop-overflow=] - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../libio/bits/stdio2.h:79:7: warning: ‘__builtin___snprintf_chk’: specified bound 3 exceeds the size 2 of the destination [-Wstringop-overflow=] + int __result = __FORTIFY_CALL_VA_BUILTIN (snprintf, __s, __n, + ^~~~~~~~ In file included from ../include/bits/string_fortified.h:1:0, from ../string/string.h:494, from ../include/string.h:56, @@ -133,12 +131,12 @@ from tst-chk2.c:2: In function ‘memcpy’, inlined from ‘do_test’ at tst-chk1.c:435:3: -../string/bits/string_fortified.h:34:10: warning: ‘__builtin___memcpy_chk’ writing 10 bytes into a region of size 9 overflows the destination [-Wstringop-overflow=] +../string/bits/string_fortified.h:48:10: warning: ‘__builtin___memcpy_chk’ writing 10 bytes into a region of size 9 overflows the destination [-Wstringop-overflow=] return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘memmove’, inlined from ‘do_test’ at tst-chk1.c:443:3: -../string/bits/string_fortified.h:40:10: warning: ‘__builtin___memmove_chk’ writing 9 bytes into a region of size 8 overflows the destination [-Wstringop-overflow=] +../string/bits/string_fortified.h:56:10: warning: ‘__builtin___memmove_chk’ writing 9 bytes into a region of size 8 overflows the destination [-Wstringop-overflow=] return __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/bits/strings_fortified.h:1:0, @@ -152,7 +150,7 @@ from tst-chk2.c:2: In function ‘bcopy’, inlined from ‘do_test’ at tst-chk1.c:451:3: -../string/bits/strings_fortified.h:25:3: warning: ‘__builtin___memmove_chk’ writing 9 bytes into a region of size 8 overflows the destination [-Wstringop-overflow=] +../string/bits/strings_fortified.h:34:3: warning: ‘__builtin___memmove_chk’ writing 9 bytes into a region of size 8 overflows the destination [-Wstringop-overflow=] (void) __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/bits/string_fortified.h:1:0, @@ -164,12 +162,12 @@ from tst-chk2.c:2: In function ‘mempcpy’, inlined from ‘do_test’ at tst-chk1.c:459:16: -../string/bits/string_fortified.h:48:10: warning: ‘__builtin___mempcpy_chk’ writing 5 bytes into a region of size 4 overflows the destination [-Wstringop-overflow=] +../string/bits/string_fortified.h:65:10: warning: ‘__builtin___mempcpy_chk’ writing 5 bytes into a region of size 4 overflows the destination [-Wstringop-overflow=] return __builtin___mempcpy_chk (__dest, __src, __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘memset’, inlined from ‘do_test’ at tst-chk1.c:467:3: -../string/bits/string_fortified.h:71:10: warning: ‘__builtin___memset_chk’ writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] +../string/bits/string_fortified.h:98:10: warning: ‘__builtin___memset_chk’ writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/bits/strings_fortified.h:1:0, @@ -183,7 +181,7 @@ from tst-chk2.c:2: In function ‘bzero’, inlined from ‘do_test’ at tst-chk1.c:475:3: -../string/bits/strings_fortified.h:31:3: warning: ‘__builtin___memset_chk’ writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] +../string/bits/strings_fortified.h:42:3: warning: ‘__builtin___memset_chk’ writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] (void) __builtin___memset_chk (__dest, '\0', __len, __bos0 (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/bits/string_fortified.h:1:0, @@ -195,7 +193,7 @@ from tst-chk2.c:2: In function ‘strncpy’, inlined from ‘do_test’ at tst-chk1.c:505:3: -../string/bits/string_fortified.h:106:10: warning: ‘__builtin___strncpy_chk’: specified bound 4 exceeds the size 3 of the destination [-Wstringop-overflow=] +../string/bits/string_fortified.h:140:10: warning: ‘__builtin___strncpy_chk’: specified bound 4 exceeds the size 3 of the destination [-Wstringop-overflow=] return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../libio/stdio.h:862:0, @@ -204,311 +202,286 @@ from tst-chk2.c:2: In function ‘snprintf’, inlined from ‘do_test’ at tst-chk1.c:518:3: -../libio/bits/stdio2.h:64:10: warning: ‘__builtin___snprintf_chk’: specified bound 3 exceeds the size 2 of the destination [-Wstringop-overflow=] - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ../include/bits/wchar2.h:1:0, - from ../wcsmbs/wchar.h:783, - from ../include/wchar.h:2, - from tst-chk1.c:34, +../libio/bits/stdio2.h:79:7: warning: ‘__builtin___snprintf_chk’: specified bound 3 exceeds the size 2 of the destination [-Wstringop-overflow=] + int __result = __FORTIFY_CALL_VA_BUILTIN (snprintf, __s, __n, + ^~~~~~~~ +In file included from ../include/sys/cdefs.h:3:0, + from ../include/features.h:423, + from tst-chk1.c:20, from tst-chk2.c:2: In function ‘wmemcpy’, inlined from ‘do_test’ at tst-chk1.c:665:3: -../wcsmbs/bits/wchar2.h:49:9: warning: call to ‘__wmemcpy_chk_warn’ declared with attribute warning: wmemcpy called with length bigger than size of destination buffer - return __wmemcpy_chk_warn (__s1, __s2, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos0 (__s1) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:35:42: warning: call to ‘__wmemcpy_warn’ declared with attribute warning: wmemcpy called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT2 (__wmemcpy_warn, __n, __s1, +../misc/sys/cdefs.h:234:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT2’ + err_fn (); \ + ^~~~~~ In function ‘wmemcpy’, inlined from ‘do_test’ at tst-chk1.c:673:3: -../wcsmbs/bits/wchar2.h:49:9: warning: call to ‘__wmemcpy_chk_warn’ declared with attribute warning: wmemcpy called with length bigger than size of destination buffer - return __wmemcpy_chk_warn (__s1, __s2, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos0 (__s1) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:35:42: warning: call to ‘__wmemcpy_warn’ declared with attribute warning: wmemcpy called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT2 (__wmemcpy_warn, __n, __s1, +../misc/sys/cdefs.h:234:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT2’ + err_fn (); \ + ^~~~~~ In function ‘wmemmove’, inlined from ‘do_test’ at tst-chk1.c:681:3: -../wcsmbs/bits/wchar2.h:77:9: warning: call to ‘__wmemmove_chk_warn’ declared with attribute warning: wmemmove called with length bigger than size of destination buffer - return __wmemmove_chk_warn (__s1, __s2, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos0 (__s1) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:56:42: warning: call to ‘__wmemmove_warn’ declared with attribute warning: wmemmove called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT2 (__wmemmove_warn, __n, __s1, +../misc/sys/cdefs.h:234:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT2’ + err_fn (); \ + ^~~~~~ In function ‘wmempcpy’, inlined from ‘do_test’ at tst-chk1.c:689:8: -../wcsmbs/bits/wchar2.h:110:9: warning: call to ‘__wmempcpy_chk_warn’ declared with attribute warning: wmempcpy called with length bigger than size of destination buffer - return __wmempcpy_chk_warn (__s1, __s2, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos0 (__s1) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:81:42: warning: call to ‘__wmempcpy_warn’ declared with attribute warning: wmempcpy called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT2 (__wmempcpy_warn, __n, __s1, +../misc/sys/cdefs.h:234:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT2’ + err_fn (); \ + ^~~~~~ In function ‘wmemset’, inlined from ‘do_test’ at tst-chk1.c:697:3: -../wcsmbs/bits/wchar2.h:137:9: warning: call to ‘__wmemset_chk_warn’ declared with attribute warning: wmemset called with length bigger than size of destination buffer - return __wmemset_chk_warn (__s, __c, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos0 (__s) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:103:42: warning: call to ‘__wmemset_warn’ declared with attribute warning: wmemset called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT2 (__wmemset_warn, __n, __s, +../misc/sys/cdefs.h:234:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT2’ + err_fn (); \ + ^~~~~~ In function ‘wcsncpy’, inlined from ‘do_test’ at tst-chk1.c:713:3: -../wcsmbs/bits/wchar2.h:200:9: warning: call to ‘__wcsncpy_chk_warn’ declared with attribute warning: wcsncpy called with length bigger than size of destination buffer - return __wcsncpy_chk_warn (__dest, __src, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__dest) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:161:41: warning: call to ‘__wcsncpy_warn’ declared with attribute warning: wcsncpy called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT2 (__wcsncpy_warn, __n, __dest, +../misc/sys/cdefs.h:244:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT2’ + err_fn (); \ + ^~~~~~ In function ‘wcsncpy’, inlined from ‘do_test’ at tst-chk1.c:721:3: -../wcsmbs/bits/wchar2.h:200:9: warning: call to ‘__wcsncpy_chk_warn’ declared with attribute warning: wcsncpy called with length bigger than size of destination buffer - return __wcsncpy_chk_warn (__dest, __src, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__dest) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:161:41: warning: call to ‘__wcsncpy_warn’ declared with attribute warning: wcsncpy called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT2 (__wcsncpy_warn, __n, __dest, +../misc/sys/cdefs.h:244:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT2’ + err_fn (); \ + ^~~~~~ In function ‘wcpncpy’, inlined from ‘do_test’ at tst-chk1.c:725:3: -../wcsmbs/bits/wchar2.h:231:9: warning: call to ‘__wcpncpy_chk_warn’ declared with attribute warning: wcpncpy called with length bigger than size of destination buffer - return __wcpncpy_chk_warn (__dest, __src, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__dest) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:186:41: warning: call to ‘__wcpncpy_warn’ declared with attribute warning: wcpncpy called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT2 (__wcpncpy_warn, __n, __dest, +../misc/sys/cdefs.h:244:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT2’ + err_fn (); \ + ^~~~~~ In function ‘wcpncpy’, inlined from ‘do_test’ at tst-chk1.c:729:3: -../wcsmbs/bits/wchar2.h:231:9: warning: call to ‘__wcpncpy_chk_warn’ declared with attribute warning: wcpncpy called with length bigger than size of destination buffer - return __wcpncpy_chk_warn (__dest, __src, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__dest) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:186:41: warning: call to ‘__wcpncpy_warn’ declared with attribute warning: wcpncpy called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT2 (__wcpncpy_warn, __n, __dest, +../misc/sys/cdefs.h:244:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT2’ + err_fn (); \ + ^~~~~~ In function ‘wmemcpy’, inlined from ‘do_test’ at tst-chk1.c:747:3: -../wcsmbs/bits/wchar2.h:49:9: warning: call to ‘__wmemcpy_chk_warn’ declared with attribute warning: wmemcpy called with length bigger than size of destination buffer - return __wmemcpy_chk_warn (__s1, __s2, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos0 (__s1) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:35:42: warning: call to ‘__wmemcpy_warn’ declared with attribute warning: wmemcpy called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT2 (__wmemcpy_warn, __n, __s1, +../misc/sys/cdefs.h:234:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT2’ + err_fn (); \ + ^~~~~~ In function ‘wmemmove’, inlined from ‘do_test’ at tst-chk1.c:755:3: -../wcsmbs/bits/wchar2.h:77:9: warning: call to ‘__wmemmove_chk_warn’ declared with attribute warning: wmemmove called with length bigger than size of destination buffer - return __wmemmove_chk_warn (__s1, __s2, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos0 (__s1) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:56:42: warning: call to ‘__wmemmove_warn’ declared with attribute warning: wmemmove called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT2 (__wmemmove_warn, __n, __s1, +../misc/sys/cdefs.h:234:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT2’ + err_fn (); \ + ^~~~~~ In function ‘wmempcpy’, inlined from ‘do_test’ at tst-chk1.c:763:8: -../wcsmbs/bits/wchar2.h:110:9: warning: call to ‘__wmempcpy_chk_warn’ declared with attribute warning: wmempcpy called with length bigger than size of destination buffer - return __wmempcpy_chk_warn (__s1, __s2, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos0 (__s1) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:81:42: warning: call to ‘__wmempcpy_warn’ declared with attribute warning: wmempcpy called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT2 (__wmempcpy_warn, __n, __s1, +../misc/sys/cdefs.h:234:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT2’ + err_fn (); \ + ^~~~~~ In function ‘wmemset’, inlined from ‘do_test’ at tst-chk1.c:771:3: -../wcsmbs/bits/wchar2.h:137:9: warning: call to ‘__wmemset_chk_warn’ declared with attribute warning: wmemset called with length bigger than size of destination buffer - return __wmemset_chk_warn (__s, __c, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos0 (__s) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:103:42: warning: call to ‘__wmemset_warn’ declared with attribute warning: wmemset called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT2 (__wmemset_warn, __n, __s, +../misc/sys/cdefs.h:234:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT2’ + err_fn (); \ + ^~~~~~ In function ‘wcsncpy’, inlined from ‘do_test’ at tst-chk1.c:793:3: -../wcsmbs/bits/wchar2.h:200:9: warning: call to ‘__wcsncpy_chk_warn’ declared with attribute warning: wcsncpy called with length bigger than size of destination buffer - return __wcsncpy_chk_warn (__dest, __src, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__dest) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ../libio/stdio.h:862:0, - from ../include/stdio.h:2, - from tst-chk1.c:30, - from tst-chk2.c:2: +../wcsmbs/bits/wchar2.h:161:41: warning: call to ‘__wcsncpy_warn’ declared with attribute warning: wcsncpy called with length bigger than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT2 (__wcsncpy_warn, __n, __dest, +../misc/sys/cdefs.h:244:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT2’ + err_fn (); \ + ^~~~~~ In function ‘fgets’, inlined from ‘do_test’ at tst-chk1.c:964:7: -../libio/bits/stdio2.h:260:9: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer - return __fgets_chk_warn (__s, __bos (__s), __n, __stream); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../libio/bits/stdio2.h:311:28: warning: call to ‘__fgets_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer + __FORTIFY_WARNING_IF (__fgets_warn, __bos_static_lt (__n, __s) && __n > 0, +../misc/sys/cdefs.h:218:5: note: in definition of macro ‘__FORTIFY_WARNING_IF’ + err_fn (); \ + ^~~~~~ In function ‘fgets_unlocked’, inlined from ‘do_test’ at tst-chk1.c:991:7: -../libio/bits/stdio2.h:318:9: warning: call to ‘__fgets_unlocked_chk_warn’ declared with attribute warning: fgets_unlocked called with bigger size than length of destination buffer - return __fgets_unlocked_chk_warn (__s, __bos (__s), __n, __stream); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../libio/bits/stdio2.h:355:28: warning: call to ‘__fgets_unlocked_warn’ declared with attribute warning: fgets_unlocked called with bigger size than length of destination buffer + __FORTIFY_WARNING_IF (__fgets_unlocked_warn, +../misc/sys/cdefs.h:218:5: note: in definition of macro ‘__FORTIFY_WARNING_IF’ + err_fn (); \ + ^~~~~~ In function ‘fread’, inlined from ‘do_test’ at tst-chk1.c:1021:7: -../libio/bits/stdio2.h:292:9: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer - return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../libio/bits/stdio2.h:333:28: warning: call to ‘__fread_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer + __FORTIFY_WARNING_IF (__fread_warn, __bos0_static_lt (__size * __n, __ptr) +../misc/sys/cdefs.h:218:5: note: in definition of macro ‘__FORTIFY_WARNING_IF’ + err_fn (); \ + ^~~~~~ In function ‘fread_unlocked’, inlined from ‘do_test’ at tst-chk1.c:1060:7: -../libio/bits/stdio2.h:354:9: warning: call to ‘__fread_unlocked_chk_warn’ declared with attribute warning: fread_unlocked called with bigger size * nmemb than length of destination buffer - return __fread_unlocked_chk_warn (__ptr, __bos0 (__ptr), __size, __n, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __stream); - ~~~~~~~~~ -In file included from ../include/bits/unistd.h:1:0, - from ../posix/unistd.h:1167, - from ../include/unistd.h:2, - from tst-chk1.c:33, - from tst-chk2.c:2: +../libio/bits/stdio2.h:381:28: warning: call to ‘__fread_unlocked_warn’ declared with attribute warning: fread_unlocked called with bigger size * n than length of destination buffer + __FORTIFY_WARNING_IF (__fread_unlocked_warn, +../misc/sys/cdefs.h:218:5: note: in definition of macro ‘__FORTIFY_WARNING_IF’ + err_fn (); \ + ^~~~~~ In function ‘read’, inlined from ‘do_test’ at tst-chk1.c:1087:7: -../posix/bits/unistd.h:42:9: warning: call to ‘__read_chk_warn’ declared with attribute warning: read called with bigger length than size of the destination buffer - return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../posix/bits/unistd.h:31:41: warning: call to ‘__read_warn’ declared with attribute warning: read called with bigger length than size of the destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT (__read_warn, __nbytes, __buf, +../misc/sys/cdefs.h:239:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT’ + err_fn (); \ + ^~~~~~ In function ‘pread’, inlined from ‘do_test’ at tst-chk1.c:1111:7: -../posix/bits/unistd.h:80:9: warning: call to ‘__pread_chk_warn’ declared with attribute warning: pread called with bigger length than size of the destination buffer - return __pread_chk_warn (__fd, __buf, __nbytes, __offset, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos0 (__buf)); - ~~~~~~~~~~~~~~~ +../posix/bits/unistd.h:67:41: warning: call to ‘__pread_chk_warn’ declared with attribute warning: pread called with bigger length than size of the destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT (__pread_chk_warn, __nbytes, __buf, +../misc/sys/cdefs.h:239:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT’ + err_fn (); \ + ^~~~~~ In function ‘pread64’, inlined from ‘do_test’ at tst-chk1.c:1137:7: -../posix/bits/unistd.h:113:9: warning: call to ‘__pread64_chk_warn’ declared with attribute warning: pread64 called with bigger length than size of the destination buffer - return __pread64_chk_warn (__fd, __buf, __nbytes, __offset, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos0 (__buf)); - ~~~~~~~~~~~~~~~ -In file included from ../include/bits/socket2.h:1:0, - from ../socket/sys/socket.h:269, - from ../include/sys/socket.h:2, - from tst-chk1.c:37, - from tst-chk2.c:2: +../posix/bits/unistd.h:86:41: warning: call to ‘__pread64_warn’ declared with attribute warning: pread64 called with bigger length than size of the destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT (__pread64_warn, __nbytes, __buf, +../misc/sys/cdefs.h:239:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT’ + err_fn (); \ + ^~~~~~ In function ‘recv’, inlined from ‘do_test’ at tst-chk1.c:1208:11: -../socket/bits/socket2.h:42:9: warning: call to ‘__recv_chk_warn’ declared with attribute warning: recv called with bigger length than size of destination buffer - return __recv_chk_warn (__fd, __buf, __n, __bos0 (__buf), __flags); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../socket/bits/socket2.h:32:41: warning: call to ‘__recv_warn’ declared with attribute warning: recv called with bigger length than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT (__recv_warn, __n, __buf, +../misc/sys/cdefs.h:239:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT’ + err_fn (); \ + ^~~~~~ In function ‘recvfrom’, inlined from ‘do_test’ at tst-chk1.c:1239:11: -../socket/bits/socket2.h:73:9: warning: call to ‘__recvfrom_chk_warn’ declared with attribute warning: recvfrom called with bigger length than size of destination buffer - return __recvfrom_chk_warn (__fd, __buf, __n, __bos0 (__buf), __flags, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __addr, __addr_len); - ~~~~~~~~~~~~~~~~~~~ -In file included from ../include/bits/unistd.h:1:0, - from ../posix/unistd.h:1167, - from ../include/unistd.h:2, - from tst-chk1.c:33, - from tst-chk2.c:2: +../socket/bits/socket2.h:56:41: warning: call to ‘__recvfrom_warn’ declared with attribute warning: recvfrom called with bigger length than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS0_LT (__recvfrom_warn, __n, __buf, +../misc/sys/cdefs.h:239:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS0_LT’ + err_fn (); \ + ^~~~~~ In function ‘readlink’, inlined from ‘do_test’ at tst-chk1.c:1282:7: -../posix/bits/unistd.h:148:9: warning: call to ‘__readlink_chk_warn’ declared with attribute warning: readlink called with bigger length than size of destination buffer - return __readlink_chk_warn (__path, __buf, __len, __bos (__buf)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../posix/bits/unistd.h:113:40: warning: call to ‘__readlink_warn’ declared with attribute warning: readlink called with bigger length than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__readlink_warn, __len, __buf, +../misc/sys/cdefs.h:249:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + err_fn (); \ + ^~~~~~ In function ‘readlinkat’, inlined from ‘do_test’ at tst-chk1.c:1307:7: -../posix/bits/unistd.h:182:9: warning: call to ‘__readlinkat_chk_warn’ declared with attribute warning: readlinkat called with bigger length than size of destination buffer - return __readlinkat_chk_warn (__fd, __path, __buf, __len, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__buf)); - ~~~~~~~~~~~~~~ +../posix/bits/unistd.h:141:40: warning: call to ‘__readlinkat_warn’ declared with attribute warning: readlinkat called with bigger length than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__readlinkat_warn, __len, __buf, +../misc/sys/cdefs.h:249:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + err_fn (); \ + ^~~~~~ In function ‘getcwd’, inlined from ‘do_test’ at tst-chk1.c:1361:8: -../posix/bits/unistd.h:208:9: warning: call to ‘__getcwd_chk_warn’ declared with attribute warning: getcwd caller with bigger length than size of destination buffer - return __getcwd_chk_warn (__buf, __size, __bos (__buf)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ../include/bits/wchar2.h:1:0, - from ../wcsmbs/wchar.h:783, - from ../include/wchar.h:2, - from tst-chk1.c:34, - from tst-chk2.c:2: +../posix/bits/unistd.h:160:40: warning: call to ‘__getcwd_warn’ declared with attribute warning: getcwd called with bigger length than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__getcwd_warn, __size, __buf, +../misc/sys/cdefs.h:249:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + err_fn (); \ + ^~~~~~ In function ‘mbsrtowcs’, inlined from ‘do_test’ at tst-chk1.c:1467:7: -../wcsmbs/bits/wchar2.h:484:9: warning: call to ‘__mbsrtowcs_chk_warn’ declared with attribute warning: mbsrtowcs called with dst buffer smaller than len * sizeof (wchar_t) - return __mbsrtowcs_chk_warn (__dst, __src, __len, __ps, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__dst) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ../include/bits/stdlib.h:1:0, - from ../stdlib/stdlib.h:905, - from ../include/stdlib.h:6, - from tst-chk1.c:31, - from tst-chk2.c:2: +../wcsmbs/bits/wchar2.h:439:41: warning: call to ‘__mbsrtowcs_warn’ declared with attribute warning: mbsrtowcs called with dst buffer smaller than len * sizeof (wchar_t) + __FORTIFY_WARNING_ONLY_IF_BOS_LT2 (__mbsrtowcs_warn, __len, __dst, +../misc/sys/cdefs.h:244:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT2’ + err_fn (); \ + ^~~~~~ In function ‘mbstowcs’, inlined from ‘do_test’ at tst-chk1.c:1485:7: -../stdlib/bits/stdlib.h:123:9: warning: call to ‘__mbstowcs_chk_warn’ declared with attribute warning: mbstowcs called with dst buffer smaller than len * sizeof (wchar_t) - return __mbstowcs_chk_warn (__dst, __src, __len, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__dst) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ../include/bits/wchar2.h:1:0, - from ../wcsmbs/wchar.h:783, - from ../include/wchar.h:2, - from tst-chk1.c:34, - from tst-chk2.c:2: +../stdlib/bits/stdlib.h:105:41: warning: call to ‘__mbstowcs_warn’ declared with attribute warning: mbstowcs called with dst buffer smaller than len * sizeof (wchar_t) + __FORTIFY_WARNING_ONLY_IF_BOS_LT2 (__mbstowcs_warn, __len, __dst, +../misc/sys/cdefs.h:244:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT2’ + err_fn (); \ + ^~~~~~ In function ‘mbsnrtowcs’, inlined from ‘do_test’ at tst-chk1.c:1505:7: -../wcsmbs/bits/wchar2.h:552:9: warning: call to ‘__mbsnrtowcs_chk_warn’ declared with attribute warning: mbsnrtowcs called with dst buffer smaller than len * sizeof (wchar_t) - return __mbsnrtowcs_chk_warn (__dst, __src, __nmc, __len, __ps, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__dst) / sizeof (wchar_t)); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../wcsmbs/bits/wchar2.h:494:40: warning: call to ‘__mbsnrtowcs_warn’ declared with attribute warning: mbsnrtowcs called with dst buffer smaller than len * sizeof (wchar_t) + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__mbsnrtowcs_warn, +../misc/sys/cdefs.h:249:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + err_fn (); \ + ^~~~~~ In function ‘wcsrtombs’, inlined from ‘do_test’ at tst-chk1.c:1524:7: -../wcsmbs/bits/wchar2.h:517:9: warning: call to ‘__wcsrtombs_chk_warn’ declared with attribute warning: wcsrtombs called with dst buffer smaller than len - return __wcsrtombs_chk_warn (__dst, __src, __len, __ps, __bos (__dst)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ../include/bits/stdlib.h:1:0, - from ../stdlib/stdlib.h:905, - from ../include/stdlib.h:6, - from tst-chk1.c:31, - from tst-chk2.c:2: +../wcsmbs/bits/wchar2.h:467:40: warning: call to ‘__wcsrtombs_warn’ declared with attribute warning: wcsrtombs called with dst buffer smaller than len + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__wcsrtombs_warn, __len, __dst, +../misc/sys/cdefs.h:249:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + err_fn (); \ + ^~~~~~ In function ‘wcstombs’, inlined from ‘do_test’ at tst-chk1.c:1543:7: -../stdlib/bits/stdlib.h:152:9: warning: call to ‘__wcstombs_chk_warn’ declared with attribute warning: wcstombs called with dst buffer smaller than len - return __wcstombs_chk_warn (__dst, __src, __len, __bos (__dst)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ../include/bits/wchar2.h:1:0, - from ../wcsmbs/wchar.h:783, - from ../include/wchar.h:2, - from tst-chk1.c:34, - from tst-chk2.c:2: +../stdlib/bits/stdlib.h:130:40: warning: call to ‘__wcstombs_warn’ declared with attribute warning: wcstombs called with dst buffer smaller than len + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__wcstombs_warn, __len, __dst, +../misc/sys/cdefs.h:249:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + err_fn (); \ + ^~~~~~ In function ‘wcsnrtombs’, inlined from ‘do_test’ at tst-chk1.c:1562:7: -../wcsmbs/bits/wchar2.h:588:9: warning: call to ‘__wcsnrtombs_chk_warn’ declared with attribute warning: wcsnrtombs called with dst buffer smaller than len - return __wcsnrtombs_chk_warn (__dst, __src, __nwc, __len, __ps, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__dst)); - ~~~~~~~~~~~~~~ -In file included from ../include/bits/stdlib.h:1:0, - from ../stdlib/stdlib.h:905, - from ../include/stdlib.h:6, - from tst-chk1.c:31, - from tst-chk2.c:2: +../wcsmbs/bits/wchar2.h:523:40: warning: call to ‘__wcsnrtombs_warn’ declared with attribute warning: wcsnrtombs called with dst buffer smaller than len + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__wcsnrtombs_warn, __len, __dst, +../misc/sys/cdefs.h:249:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + err_fn (); \ + ^~~~~~ In function ‘ptsname_r’, inlined from ‘do_test’ at tst-chk1.c:1582:11: -../stdlib/bits/stdlib.h:71:9: warning: call to ‘__ptsname_r_chk_warn’ declared with attribute warning: ptsname_r called with buflen bigger than size of buf - return __ptsname_r_chk_warn (__fd, __buf, __buflen, __bos (__buf)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ../include/bits/unistd.h:1:0, - from ../posix/unistd.h:1167, - from ../include/unistd.h:2, - from tst-chk1.c:33, - from tst-chk2.c:2: +../stdlib/bits/stdlib.h:62:40: warning: call to ‘__ptsname_r_warn’ declared with attribute warning: ptsname_r called with buflen bigger than size of buf + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__ptsname_r_warn, __buflen, __buf, +../misc/sys/cdefs.h:249:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + err_fn (); \ + ^~~~~~ In function ‘confstr’, inlined from ‘do_test’ at tst-chk1.c:1594:3: -../posix/bits/unistd.h:248:9: warning: call to ‘__confstr_chk_warn’ declared with attribute warning: confstr called with bigger length than size of destination buffer - return __confstr_chk_warn (__name, __buf, __len, __bos (__buf)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../posix/bits/unistd.h:203:40: warning: call to ‘__confstr_warn’ declared with attribute warning: confstr called with bigger length than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__confstr_warn, __len, __buf, +../misc/sys/cdefs.h:249:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + err_fn (); \ + ^~~~~~ In function ‘getgroups’, inlined from ‘do_test’ at tst-chk1.c:1605:7: -../posix/bits/unistd.h:273:9: warning: call to ‘__getgroups_chk_warn’ declared with attribute warning: getgroups called with bigger group count than what can fit into destination buffer - return __getgroups_chk_warn (__size, __list, __bos (__list)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../posix/bits/unistd.h:221:40: warning: call to ‘__getgroups_warn’ declared with attribute warning: getgroups called with bigger group count than what can fit into destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__getgroups_warn, +../misc/sys/cdefs.h:249:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + err_fn (); \ + ^~~~~~ In function ‘ttyname_r’, inlined from ‘do_test’ at tst-chk1.c:1620:11: -../posix/bits/unistd.h:299:9: warning: call to ‘__ttyname_r_chk_warn’ declared with attribute warning: ttyname_r called with bigger buflen than size of destination buffer - return __ttyname_r_chk_warn (__fd, __buf, __buflen, __bos (__buf)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../posix/bits/unistd.h:249:40: warning: call to ‘__ttyname_r_warn’ declared with attribute warning: ttyname_r called with bigger buflen than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__ttyname_r_warn, __buflen, __buf, +../posix/bits/unistd.h:249:6: note: in expansion of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__ttyname_r_warn, __buflen, __buf, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘gethostname’, inlined from ‘do_test’ at tst-chk1.c:1632:3: -../posix/bits/unistd.h:352:9: warning: call to ‘__gethostname_chk_warn’ declared with attribute warning: gethostname called with bigger buflen than size of destination buffer - return __gethostname_chk_warn (__buf, __buflen, __bos (__buf)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../posix/bits/unistd.h:291:40: warning: call to ‘__gethostname_warn’ declared with attribute warning: gethostname called with bigger buflen than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__gethostname_warn, __buflen, __buf, +../misc/sys/cdefs.h:249:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + err_fn (); \ + ^~~~~~ In function ‘getlogin_r’, inlined from ‘do_test’ at tst-chk1.c:1641:3: -../posix/bits/unistd.h:325:9: warning: call to ‘__getlogin_r_chk_warn’ declared with attribute warning: getlogin_r called with bigger buflen than size of destination buffer - return __getlogin_r_chk_warn (__buf, __buflen, __bos (__buf)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../posix/bits/unistd.h:269:40: warning: call to ‘__getlogin_r_warn’ declared with attribute warning: getlogin_r called with bigger buflen than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__getlogin_r_warn, __buflen, __buf, +../misc/sys/cdefs.h:249:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + err_fn (); \ + ^~~~~~ In function ‘getdomainname’, inlined from ‘do_test’ at tst-chk1.c:1651:7: -../posix/bits/unistd.h:381:9: warning: call to ‘__getdomainname_chk_warn’ declared with attribute warning: getdomainname called with bigger buflen than size of destination buffer - return __getdomainname_chk_warn (__buf, __buflen, __bos (__buf)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../posix/bits/unistd.h:314:40: warning: call to ‘__getdomainname_warn’ declared with attribute warning: getdomainname called with bigger buflen than size of destination buffer + __FORTIFY_WARNING_ONLY_IF_BOS_LT (__getdomainname_warn, __buflen, __buf, +../misc/sys/cdefs.h:249:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT’ + err_fn (); \ + ^~~~~~ In file included from ../include/bits/select2.h:1:0, from ../misc/sys/select.h:123, from ../include/sys/select.h:2, @@ -567,20 +540,21 @@ tst-chk1.c:1684:3: note: in expansion of macro ‘FD_ISSET’ FD_ISSET (FD_SETSIZE, &s); ^~~~~~~~ -In file included from ../include/bits/poll2.h:1:0, - from ../io/sys/poll.h:73, - from ../include/sys/poll.h:2, - from tst-chk1.c:35, +In file included from ../include/sys/cdefs.h:3:0, + from ../include/features.h:423, + from tst-chk1.c:20, from tst-chk2.c:2: In function ‘poll’, inlined from ‘do_test’ at tst-chk1.c:1698:3: -../include/bits/../../io/bits/poll2.h:43:9: warning: call to ‘__poll_chk_warn’ declared with attribute warning: poll called with fds buffer too small file nfds entries - return __poll_chk_warn (__fds, __nfds, __timeout, __bos (__fds)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/bits/../../io/bits/poll2.h:36:41: warning: call to ‘__poll_warn’ declared with attribute warning: poll called with fds buffer too small + __FORTIFY_WARNING_ONLY_IF_BOS_LT2 (__poll_warn, __nfds, __fds, +../misc/sys/cdefs.h:244:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT2’ + err_fn (); \ + ^~~~~~ In function ‘ppoll’, inlined from ‘do_test’ at tst-chk1.c:1708:3: -../include/bits/../../io/bits/poll2.h:73:9: warning: call to ‘__ppoll_chk_warn’ declared with attribute warning: ppoll called with fds buffer too small file nfds entries - return __ppoll_chk_warn (__fds, __nfds, __timeout, __ss, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__fds)); - ~~~~~~~~~~~~~~ +../include/bits/../../io/bits/poll2.h:58:41: warning: call to ‘__ppoll_warn’ declared with attribute warning: ppoll called with fds buffer too small file nfds entries + __FORTIFY_WARNING_ONLY_IF_BOS_LT2 (__ppoll_warn, __nfds, __fds, +../misc/sys/cdefs.h:244:5: note: in definition of macro ‘__FORTIFY_WARNING_ONLY_IF_BOS_LT2’ + err_fn (); \ + ^~~~~~