Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <2190F767-A1C5-4ED9-8575-FF55565B8317@gmail.com>
Date: Tue, 22 Sep 2015 13:40:13 +0200
From: Julien Ramseier <j.ramseier@...il.com>
To: musl@...ts.openwall.com
Subject: getaddrinfo and null args

Hello,

According to http://pubs.opengroup.org/onlinepubs/9699919799/functions/freeaddrinfo.html:
"The nodename and servname arguments are either null pointers or pointers
 to null-terminated strings. One or both of these two arguments shall be supplied 
by the application as a non-null pointer. "
"[EAI_NONAME]
Neither nodename nor servname were supplied. At least one of these shall be supplied."

getaddrinfo() currently accepts both nodename and servname being null.
Following patch fixes the problem:


Download attachment "fix-getaddrinfo-both-null-args.diff" of type "application/octet-stream" (411 bytes)



—
Julien

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.