This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/22446] aliasing violation calling readlink in handle_request


https://sourceware.org/bugzilla/show_bug.cgi?id=22446

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  49b036bce9f021ae994a85aee8b410d20b29c8b7 (commit)
      from  c85c564d1442f0bc09a6c80fca025f004e12d044 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=49b036bce9f021ae994a85aee8b410d20b29c8b7

commit 49b036bce9f021ae994a85aee8b410d20b29c8b7
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Mon Dec 18 18:50:40 2017 +0000

    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.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog          |    6 ++++++
 nscd/connections.c |    5 +++--
 2 files changed, 9 insertions(+), 2 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]