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 resolv: Introduce struct resolv_context [BZ #21668] 2017-07-03 20:52:59 +02:00
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 Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Depend
gai.c Mark internal nss symbols with attribute_hidden [BZ #18822] 2017-08-21 05:31:19 -07: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 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 Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
netgroupcache.c nscd: Release read lock after resetting timeout. 2017-09-25 19:49:36 -04:00
nscd_conf.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nscd_getai.c Consolidate non cancellable close call 2017-08-18 18:38:55 -03:00
nscd_getgr_r.c NSS: Remove internal_function function attribute 2017-08-31 15:59:06 +02:00
nscd_gethst_r.c NSS: Remove internal_function function attribute 2017-08-31 15:59:06 +02:00
nscd_getpw_r.c NSS: Remove internal_function function attribute 2017-08-31 15:59:06 +02:00
nscd_getserv_r.c Consolidate non cancellable close call 2017-08-18 18:38:55 -03:00
nscd_helper.c nss: Export nscd hash function as __nss_hash [BZ #22459] 2017-11-23 14:08:11 +01:00
nscd_initgroups.c Consolidate non cancellable close call 2017-08-18 18:38:55 -03:00
nscd_netgroup.c Consolidate non cancellable close call 2017-08-18 18:38:55 -03:00
nscd_proto.h Mark internal nscd functions with attribute_hidden [BZ #18822] 2017-10-01 15:16:27 -07:00
nscd_setup_thread.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
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 Update copyright dates not handled by scripts/update-copyrights. 2017-01-01 00:26:24 +00:00
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 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