This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/9954] getaddrinfo assertion triggered without reason
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 25 Oct 2013 04:28:54 +0000
- Subject: [Bug network/9954] getaddrinfo assertion triggered without reason
- Auto-submitted: auto-generated
- References: <bug-9954-131 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=9954
--- Comment #8 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
via 894f3f1049135dcbeaab8f18690973663ef3147c (commit)
from b85545a67110b236676aec8000f52d8385465660 (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=894f3f1049135dcbeaab8f18690973663ef3147c
commit 894f3f1049135dcbeaab8f18690973663ef3147c
Author: Allan McRae <allan@archlinux.org>
Date: Fri Oct 25 14:25:38 2013 +1000
Fix incorrect getaddrinfo assertion trigger
[BZ #9954]
With the following /etc/hosts:
127.0.0.1 www.my-domain.es
127.0.1.1 www.my-domain.es
192.168.0.1 www.my-domain.es
Using getaddrinfo() on www.my-domain.es, trigger the following assertion:
../sysdeps/posix/getaddrinfo.c:1473: rfc3484_sort: Assertion
`src->results[i].native == -1 || src->results[i].native == a1_native'
failed.
This is due to two different bugs:
- In rfc3484_sort() rule 7, src->results[i].native is assigned even if
src->results[i].index is -1, meaning that no interface is associated.
- In getaddrinfo() the source IP address used with the lo interface needs a
special case, as it can be any IP within 127.X.Y.Z.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 ++++++++
sysdeps/posix/getaddrinfo.c | 13 ++++++++++---
2 files changed, 18 insertions(+), 3 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.