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 network/19787] Missing and incorrect truncation checks in getnameinfo


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

--- Comment #7 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, release/2.23/master has been updated
       via  f8020794aea5d4feb38683fc8301ee04a4fc4759 (commit)
       via  05d2606fa110a8afd85419d969a6d55bf88efb0f (commit)
       via  c5aae1035cac6305a111e3461af23a924914d9f5 (commit)
      from  e5bcbfc23b356b62ebfcd1943655eab45a9ca87c (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=f8020794aea5d4feb38683fc8301ee04a4fc4759

commit f8020794aea5d4feb38683fc8301ee04a4fc4759
Author: Florian Weimer <fweimer@redhat.com>
Date:   Wed May 4 14:45:17 2016 +0200

    getnameinfo: Return EAI_OVERFLOW in more cases [BZ #19787]

    The AF_LOCAL and AF_INET/AF_INET6 non-numerci service conversion
    did not return EAI_OVERFLOW if the supplied buffer was too small,
    silently returning truncated data.  In the AF_INET/AF_INET6
    numeric cases, the snprintf return value checking was incorrect.

    (cherry picked from commit 066746783d6c6c0f61b39c741177e24a9b398a20)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=05d2606fa110a8afd85419d969a6d55bf88efb0f

commit 05d2606fa110a8afd85419d969a6d55bf88efb0f
Author: Florian Weimer <fweimer@redhat.com>
Date:   Wed May 4 14:35:23 2016 +0200

    getnameinfo: Avoid calling strnlen on uninitialized buffer

    In the numeric AF_INET/AF_INET6 case, if inet_ntop fails
    as the result of a short host buffer, we used to call strnlen
    on the uninitialized host buffer.

    (cherry picked from commit 1c3490d4b29fc5b3f30dd6b13082046aee94443d)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c5aae1035cac6305a111e3461af23a924914d9f5

commit c5aae1035cac6305a111e3461af23a924914d9f5
Author: Florian Weimer <fweimer@redhat.com>
Date:   Wed May 4 14:35:12 2016 +0200

    getnameinfo: Reduce line length and add missing comments

    (cherry picked from commit c9b0e6a432e827b61f12eb52c2aaeadc77b64461)

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

Summary of changes:
 ChangeLog          |   26 +++++++++
 inet/getnameinfo.c |  147 +++++++++++++++++++++++++---------------------------
 2 files changed, 97 insertions(+), 76 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]