]> git.ipfire.org Git - thirdparty/glibc.git/commit
getnameinfo: Return EAI_OVERFLOW in more cases [BZ #19787]
authorFlorian Weimer <fweimer@redhat.com>
Wed, 4 May 2016 12:45:17 +0000 (14:45 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 9 May 2016 09:08:02 +0000 (11:08 +0200)
commitf8020794aea5d4feb38683fc8301ee04a4fc4759
tree8379079522b6ec72f6e1309f9d3d13b8040c9fac
parent05d2606fa110a8afd85419d969a6d55bf88efb0f
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)
ChangeLog
inet/getnameinfo.c