about summary refs log tree commit diff
path: root/dlfcn
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-12-18 18:50:40 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-12-18 18:50:40 +0000
commit49b036bce9f021ae994a85aee8b410d20b29c8b7 (patch)
treef0100e6d1378252d9cb40f96982b245ab69a657c /dlfcn
parentc85c564d1442f0bc09a6c80fca025f004e12d044 (diff)
downloadglibc-49b036bce9f021ae994a85aee8b410d20b29c8b7.tar.gz
glibc-49b036bce9f021ae994a85aee8b410d20b29c8b7.tar.xz
glibc-49b036bce9f021ae994a85aee8b410d20b29c8b7.zip
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.
Diffstat (limited to 'dlfcn')
0 files changed, 0 insertions, 0 deletions