diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-05-04 14:35:23 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-05-04 14:48:01 +0200 |
commit | 1c3490d4b29fc5b3f30dd6b13082046aee94443d (patch) | |
tree | 615a33e7671aec7f908922800081793edcb06356 /ChangeLog | |
parent | c9b0e6a432e827b61f12eb52c2aaeadc77b64461 (diff) | |
download | glibc-1c3490d4b29fc5b3f30dd6b13082046aee94443d.zip glibc-1c3490d4b29fc5b3f30dd6b13082046aee94443d.tar.gz glibc-1c3490d4b29fc5b3f30dd6b13082046aee94443d.tar.bz2 |
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2016-05-04 Florian Weimer <fweimer@redhat.com> + * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW + in case of inet_ntop failure. + +2016-05-04 Florian Weimer <fweimer@redhat.com> + * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to avoid long lines. (gni_host_inet_numeric): Likewise. Reduce scope of local |