glibc/nscd
Joseph Myers 49b036bce9 Fix nscd readlink argument aliasing (bug 22446).
Current GCC mainline detects that nscd calls readlink with the same
buffer for both input and output, which is not valid (those arguments
are both restrict-qualified in POSIX).  This patch makes it use a
separate buffer for readlink's input (with a size that is sufficient
to avoid truncation, so there should be no problems with warnings
about possible truncation, though not strictly minimal, but much
smaller than the buffer for output) to avoid this problem.

Tested compilation for aarch64-linux-gnu with build-many-glibcs.py.

	[BZ #22446]
	* nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
	buffers for readlink input and output.
2017-12-18 18:50:40 +00:00
..
aicache.c
cache.c nss: Export nscd hash function as __nss_hash [BZ #22459] 2017-11-23 14:08:11 +01:00
connections.c Fix nscd readlink argument aliasing (bug 22446). 2017-12-18 18:50:40 +00:00
dbg_log.c Increase buffer size due to warning from ToT GCC 2017-12-15 09:08:23 -08:00
dbg_log.h
Depend
gai.c
getgrgid_r.c
getgrnam_r.c
gethstbyad_r.c
gethstbynm3_r.c
getpwnam_r.c
getpwuid_r.c
getsrvbynm_r.c
getsrvbypt_r.c
grpcache.c
hstcache.c
initgrcache.c Remove compat from DEFAULT_CONFIG lookup strings 2017-09-12 10:21:48 -07:00
Makefile Replace = with += in CFLAGS-xxx.c/CPPFLAGS-xxx.c 2017-12-11 13:11:33 -08:00
mem.c
netgroupcache.c nscd: Release read lock after resetting timeout. 2017-09-25 19:49:36 -04:00
nscd_conf.c
nscd_getai.c
nscd_getgr_r.c
nscd_gethst_r.c
nscd_getpw_r.c
nscd_getserv_r.c
nscd_helper.c nss: Export nscd hash function as __nss_hash [BZ #22459] 2017-11-23 14:08:11 +01:00
nscd_initgroups.c
nscd_netgroup.c
nscd_proto.h Mark internal nscd functions with attribute_hidden [BZ #18822] 2017-10-01 15:16:27 -07:00
nscd_setup_thread.c
nscd_stat.c nscd: Eliminate compilation time dependency in the build output 2017-10-05 18:14:57 +02:00
nscd-client.h Mark internal nscd functions with attribute_hidden [BZ #18822] 2017-10-01 15:16:27 -07:00
nscd.c
nscd.conf
nscd.h Use memcpy instead of strncpy in nscd/nscd.h to fix build problem with ToT GCC 2017-12-12 13:47:32 -08:00
nscd.init
nscd.service
nscd.tmpfiles
pwdcache.c
res_hconf.c
selinux.c
selinux.h
servicescache.c