glibc/nscd
Joseph Myers 935cecfe9a 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.

(cherry picked from commit 49b036bce9)
2018-10-22 14:08:12 +02:00
..
aicache.c resolv: Introduce struct resolv_context [BZ #21668] 2017-07-03 20:52:59 +02:00
cache.c
connections.c Fix nscd readlink argument aliasing (bug 22446). 2018-10-22 14:08:12 +02:00
dbg_log.c Increase buffer size due to warning from ToT GCC 2018-10-22 14:00:39 +02:00
dbg_log.h
Depend
gai.c
getgrgid_r.c
getgrnam_r.c
gethstbyad_r.c resolv: Call _res_hconf_init from __res_vinit 2017-06-27 09:26:46 +02:00
gethstbynm3_r.c resolv: Call _res_hconf_init from __res_vinit 2017-06-27 09:26:46 +02:00
getpwnam_r.c
getpwuid_r.c
getsrvbynm_r.c
getsrvbypt_r.c
grpcache.c
hstcache.c
initgrcache.c
Makefile Rename cppflags-iterator.mk to libof-iterator.mk, remove extra-modules.mk. 2017-05-09 07:06:29 -04:00
mem.c
netgroupcache.c [BZ #22342] Fix netgroup cache keys. 2018-05-17 14:00:28 +02: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
nscd_initgroups.c
nscd_netgroup.c
nscd_proto.h
nscd_setup_thread.c
nscd_stat.c
nscd-client.h
nscd.c Update copyright dates not handled by scripts/update-copyrights. 2017-01-01 00:26:24 +00:00
nscd.conf
nscd.h
nscd.init
nscd.service
nscd.tmpfiles
pwdcache.c
res_hconf.c
selinux.c
selinux.h
servicescache.c