glibc/sysdeps
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
..
aarch64 [AARCH64] Rewrite elf_machine_load_address using _DYNAMIC symbol 2018-01-26 12:03:49 +01:00
alpha nptl: Define __PTHREAD_MUTEX_{NUSERS_AFTER_KIND,USE_UNION} 2017-11-07 11:03:01 -02:00
arm nptl: Define __PTHREAD_MUTEX_{NUSERS_AFTER_KIND,USE_UNION} 2017-11-07 11:03:01 -02:00
generic tunables: Use direct syscall for access (BZ#21744) 2017-07-24 11:21:07 -03:00
gnu utmp: Avoid -Wstringop-truncation warning 2018-10-22 14:00:13 +02:00
hppa nptl: Define __PTHREAD_MUTEX_{NUSERS_AFTER_KIND,USE_UNION} 2017-11-07 11:03:01 -02:00
i386 Fix i386 memmove issue (bug 22644). 2018-05-17 13:58:22 +02:00
ia64 ia64: Fix memchr for large input sizes (BZ #22603) 2018-01-10 21:56:05 +01:00
ieee754 Remove conditional on LDBL_MANT_DIG from e_lgammal_r.c 2017-10-10 10:15:16 -03:00
init_array Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
m68k nptl: Define __PTHREAD_MUTEX_{NUSERS_AFTER_KIND,USE_UNION} 2017-11-07 11:03:01 -02:00
mach Remove __need macros from errno.h (__need_Emath, __need_error_t). 2017-06-14 08:14:34 -04:00
microblaze nptl: Define __PTHREAD_MUTEX_{NUSERS_AFTER_KIND,USE_UNION} 2017-11-07 11:03:01 -02:00
mips nptl: Define __PTHREAD_MUTEX_{NUSERS_AFTER_KIND,USE_UNION} 2017-11-07 11:03:01 -02:00
nios2 nptl: Define __PTHREAD_MUTEX_{NUSERS_AFTER_KIND,USE_UNION} 2017-11-07 11:03:01 -02:00
nptl Fix blocking pthread_join. [BZ #23137] 2018-05-17 14:05:51 +02:00
posix preadv2/pwritev2: Handle offset == -1 [BZ #22753] 2018-09-28 15:16:02 -03:00
powerpc powerpc: Fix syscalls during early process initialization [BZ #22685] 2018-01-29 14:50:19 -02:00
pthread Single threaded stdio optimization 2017-07-04 16:05:12 +01:00
s390 nptl: Define __PTHREAD_MUTEX_{NUSERS_AFTER_KIND,USE_UNION} 2017-11-07 11:03:01 -02:00
sh nptl: Define __PTHREAD_MUTEX_{NUSERS_AFTER_KIND,USE_UNION} 2017-11-07 11:03:01 -02:00
sparc Fix TLS relocations against local symbols on powerpc32, sparc32 and sparc64 2017-11-14 21:07:52 +01:00
tile nptl: Define __PTHREAD_MUTEX_{NUSERS_AFTER_KIND,USE_UNION} 2017-11-07 11:03:01 -02:00
unix utmp: Avoid -Wstringop-truncation warning 2018-10-22 14:00:13 +02:00
wordsize-32 Build divdi3 only for architecture that required it 2017-04-06 15:14:34 -03:00
wordsize-64 posix: Consolidate Linux glob implementation 2017-10-30 11:49:40 +01:00
x86 x86: Populate COMMON_CPUID_INDEX_80000001 for Intel CPUs [BZ #23459] 2018-07-29 06:28:50 -07:00
x86_64 Don't write beyond destination in __mempcpy_avx512_no_vzeroupper (bug 23196) 2018-05-24 15:47:12 +02:00