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 #5 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  066746783d6c6c0f61b39c741177e24a9b398a20 (commit)
       via  1c3490d4b29fc5b3f30dd6b13082046aee94443d (commit)
       via  c9b0e6a432e827b61f12eb52c2aaeadc77b64461 (commit)
      from  eb3b8a4924502e508d5b353ed75f39826d2c9466 (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=066746783d6c6c0f61b39c741177e24a9b398a20

commit 066746783d6c6c0f61b39c741177e24a9b398a20
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.

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

commit 1c3490d4b29fc5b3f30dd6b13082046aee94443d
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.

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

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

    getnameinfo: Reduce line length and add missing comments

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

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]