glibc/sysdeps/posix
Allan McRae 894f3f1049 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.
2013-10-25 14:28:32 +10:00
..
alarm.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
clock_getres.c Fix symbol definitions for __clock_* functions 2013-06-11 11:11:11 +05:30
clock.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
closedir.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ctermid.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
cuserid.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
dirfd.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
dirstream.h Fix readdir regressions on sparc 32-bit. 2013-10-10 22:32:36 -07:00
dup2.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
dup.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
euidaccess.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
fdopendir.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
flock.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
fpathconf.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
gai_strerror-strs.h
gai_strerror.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getaddrinfo.c Fix incorrect getaddrinfo assertion trigger 2013-10-25 14:28:32 +10:00
getcwd.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getdtsz.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
gethostname.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getpagesize.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
gettimeofday.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
isatty.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
isfdtype.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
killpg.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
libc_fatal.c Never call syslog in __libc_message. 2013-03-28 10:38:37 -07:00
Makefile
mkfifo.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mkfifoat.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
nice.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
open64.c Remove bp-sym.h and BP_SYM uses from C code. 2013-02-14 13:12:02 +00:00
opendir.c CVE-2013-4237, BZ #14699: Buffer overflow in readdir_r 2013-08-16 09:40:34 +02:00
pathconf.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
pause.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
posix_fallocate64.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
posix_fallocate.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
pread64.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
pread.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
preadv64.c
preadv.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
profil.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
pwrite64.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
pwrite.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
pwritev64.c
pwritev.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
raise.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
readdir_r.c CVE-2013-4237, BZ #14699: Buffer overflow in readdir_r 2013-08-16 09:40:34 +02:00
readdir.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
readv.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
remove.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
rename.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
rewinddir.c CVE-2013-4237, BZ #14699: Buffer overflow in readdir_r 2013-08-16 09:40:34 +02:00
seekdir.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
shm_open.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
shm_unlink.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sigblock.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sigignore.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sigintr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
signal.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sigpause.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sigset.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sigsetmask.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sigsuspend.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sigvec.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sigwait.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sleep.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
spawni.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sprofil.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sysconf.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
system.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sysv_signal.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
telldir.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tempname.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
time.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
timespec_get.c Fix name space use in last commit. 2013-04-23 15:57:25 -07:00
truncate.c Clean up POSIX.1 implementation of truncate. 2013-05-06 14:56:13 -07:00
ttyname_r.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ttyname.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ulimit.c ulimit: include <limits.h> 2013-01-23 17:27:45 +01:00
utime.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
utimes.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
wait3.c Fix copyright notice corruption from update-copyright bug. 2013-01-02 19:28:45 +00:00
wait.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
waitid.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
writev.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00