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 Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
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 Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Depend Don't mention linuxthreads in Depend files. 2014-05-21 16:53:11 +00:00
gai.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getgrgid_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getgrnam_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
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 Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getpwuid_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getsrvbynm_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getsrvbypt_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
grpcache.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
hstcache.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
initgrcache.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Makefile Rename cppflags-iterator.mk to libof-iterator.mk, remove extra-modules.mk. 2017-05-09 07:06:29 -04:00
mem.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
netgroupcache.c [BZ #22342] Fix netgroup cache keys. 2018-05-17 14:00:28 +02:00
nscd_conf.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd_getai.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd_getgr_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd_gethst_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd_getpw_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd_getserv_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd_helper.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd_initgroups.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd_netgroup.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd_proto.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd_setup_thread.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd_stat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd-client.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd.c Update copyright dates not handled by scripts/update-copyrights. 2017-01-01 00:26:24 +00:00
nscd.conf Implement caching of nscd 2011-10-07 10:06:31 -04:00
nscd.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd.init
nscd.service nscd: also invalidate netgroup cache on reload 2014-03-19 14:45:10 +01:00
nscd.tmpfiles Add systemd unit file for nscd 2013-12-16 11:22:01 +10:00
pwdcache.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
res_hconf.c
selinux.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
selinux.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
servicescache.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00