This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4381] unaligned memory access in gethostbyname_r()
- From: "cvs-commit at gcc dot gnu dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 12 Jul 2007 15:10:54 -0000
- Subject: [Bug libc/4381] unaligned memory access in gethostbyname_r()
- References: <20070416214852.4381.aurelien@aurel32.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2007-07-12 15:10 -------
Subject: Bug 4381
CVSROOT: /cvs/glibc
Module name: libc
Branch: glibc-2_5-branch
Changes by: jakub@sourceware.org 2007-07-12 15:10:44
Modified files:
. : ChangeLog
nis/nss_nis : nis-hosts.c
nss/nss_files : files-hosts.c
resolv/nss_dns : dns-host.c dns-network.c
Log message:
2007-04-23 Jakub Jelinek <jakub@redhat.com>
[BZ #4381]
* nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
alignment of buffer and tmp_buffer.
* nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
alignment of buffer.
* resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
bigger than INT_MAX.
* resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
h_errnop arguments. Fail if buflen is too small.
(_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/ChangeLog.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.10362.2.69&r2=1.10362.2.70
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/nis/nss_nis/nis-hosts.c.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.26&r2=1.26.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/nss/nss_files/files-hosts.c.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.23&r2=1.23.8.1
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/resolv/nss_dns/dns-host.c.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.43&r2=1.43.4.1
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/resolv/nss_dns/dns-network.c.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.21&r2=1.21.2.1
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4381
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.