public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug network/17722] New: Resolver inet_* namespace
@ 2014-12-17 15:36 jsm28 at gcc dot gnu.org
2014-12-17 18:10 ` [Bug network/17722] " cvs-commit at gcc dot gnu.org
2014-12-17 18:11 ` jsm28 at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-12-17 15:36 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=17722
Bug ID: 17722
Summary: Resolver inet_* namespace
Product: glibc
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: network
Assignee: unassigned at sourceware dot org
Reporter: jsm28 at gcc dot gnu.org
Parts of the resolver brought in by pthreads (at least) use inet_* functions
that aren't in the 1995/6 edition of POSIX that introduced pthreads (or in one
case, use __inet_aton which is then defined in the same file as non-weak
inet_addr).
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug network/17722] Resolver inet_* namespace
2014-12-17 15:36 [Bug network/17722] New: Resolver inet_* namespace jsm28 at gcc dot gnu.org
@ 2014-12-17 18:10 ` cvs-commit at gcc dot gnu.org
2014-12-17 18:11 ` jsm28 at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2014-12-17 18:10 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=17722
--- Comment #1 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 8ac5a76a99e51a91eac9cecbe941fc05ddf11e03 (commit)
from 66ce3cb12f74d3dbd4018ce6498a36348acf7e83 (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=8ac5a76a99e51a91eac9cecbe941fc05ddf11e03
commit 8ac5a76a99e51a91eac9cecbe941fc05ddf11e03
Author: Joseph Myers <joseph@codesourcery.com>
Date: Wed Dec 17 18:09:11 2014 +0000
Fix resolver inet_* namespace (bug 17722).
Parts of the resolver brought in by pthreads (at least) use inet_*
functions that aren't in the 1995/6 edition of POSIX that introduced
pthreads (or in one case, use __inet_aton which is then defined in the
same file as non-weak inet_addr). This patch fixes this by making the
affected functions into weak alias for __inet_* and using those names
in the problematic resolver code.
Tested for x86_64 (testsuite, and that disassembly of installed shared
libraries is unchanged by the patch).
[BZ #17722]
* inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
define as weak alias of __inet_makeaddr.
* resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
as weak alias of __inet_addr.
* resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
as weak alias of __inet_pton. Use libc_hidden_weak.
* include/arpa/inet.h (__inet_pton): Declare. Use
libc_hidden_proto.
(inet_makeaddr): Don't use libc_hidden_proto.
(__inet_makeaddr): Declare. Use libc_hidden_proto.
* resolv/res_init.c (__res_vinit): Use __inet_pton instead of
inet_pton. Use __inet_makeaddr instead of inet_makeaddr.
* conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
Remove variable.
(test-xfail-POSIX/sched.h/linknamespace): Likewise.
(test-xfail-POSIX/time.h/linknamespace): Likewise.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 20 ++++++++++++++++++++
NEWS | 3 ++-
conform/Makefile | 3 ---
include/arpa/inet.h | 5 ++++-
inet/inet_mkadr.c | 5 +++--
resolv/inet_addr.c | 3 ++-
resolv/inet_pton.c | 6 ++++--
resolv/res_init.c | 4 ++--
8 files changed, 37 insertions(+), 12 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug network/17722] Resolver inet_* namespace
2014-12-17 15:36 [Bug network/17722] New: Resolver inet_* namespace jsm28 at gcc dot gnu.org
2014-12-17 18:10 ` [Bug network/17722] " cvs-commit at gcc dot gnu.org
@ 2014-12-17 18:11 ` jsm28 at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-12-17 18:11 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=17722
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Fixed for 2.21.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-17 18:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-17 15:36 [Bug network/17722] New: Resolver inet_* namespace jsm28 at gcc dot gnu.org
2014-12-17 18:10 ` [Bug network/17722] " cvs-commit at gcc dot gnu.org
2014-12-17 18:11 ` jsm28 at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).