glibc/sysdeps/gnu
Martin Sebor e37ec9c813 utmp: Avoid -Wstringop-truncation warning
The -Wstringop-truncation option new in GCC 8 detects common misuses
of the strncat and strncpy function that may result in truncating
the copied string before the terminating NUL.  To avoid false positive
warnings for correct code that intentionally creates sequences of
characters that aren't guaranteed to be NUL-terminated, arrays that
are intended to store such sequences should be decorated with a new
nonstring attribute.  This change add this attribute to Glibc and
uses it to suppress such false positives.

ChangeLog:
	* misc/sys/cdefs.h (__attribute_nonstring__): New macro.
	* sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
	* sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.

(cherry picked from commit 7532837d7b)
2018-10-22 14:00:13 +02:00
..
bits utmp: Avoid -Wstringop-truncation warning 2018-10-22 14:00:13 +02:00
net Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
netinet Add TCP_FASTOPEN_CONNECT from Linux 4.11 to netinet/tcp.h. 2017-05-01 16:18:31 +00:00
sys Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
configure Rename localedir to complocaledir (bug 14259). 2015-11-27 10:22:38 -05:00
configure.ac Refactor handling of /lib64 etc. cases, move out of sysdeps/gnu/configure.ac. 2014-07-17 14:35:48 +00:00
errlist-compat.awk Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
errlist.awk manual: Convert errno @comments to new @errno macro. 2017-05-19 22:47:53 -07:00
errlist.c Regenerate sysdeps/gnu/errlist.c. 2017-06-04 15:27:14 -04:00
getutmp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getutmpx.c
glob64.c posix: Sync glob with gnulib [BZ #1062] 2017-10-20 19:36:33 +02:00
globfree64.c posix: Sync glob with gnulib [BZ #1062] 2017-10-20 19:36:33 +02:00
ifaddrs.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ldsodefs.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rt-unwind-resume.c
siglist.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
unwind-resume.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
updwtmp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
utmp_file.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
utmpx.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00