public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/10452] New: send_dg(): first answer overwritten when it is SERVFAIL, NOTIMP or REFUSED
@ 2009-07-26 0:42 aurelien at aurel32 dot net
2009-07-26 19:17 ` [Bug libc/10452] " drepper at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: aurelien at aurel32 dot net @ 2009-07-26 0:42 UTC (permalink / raw)
To: glibc-bugs
In the file resolv/res_send.c, function send_dg(), when the first answer is
received and corresponds to SERVFAIL, NOTIMP or REFUSED, resplen is set to 1 to
signify the error (line 1288). However for the second answer, the buffer start
is computed using resplen (line 1139), so it overwrites the first answer, and
most importantly the rcode part.
This causes strange behaviour in such cases given the first answer correspond
to the buffer of the second one, but shifted by one.
--
Summary: send_dg(): first answer overwritten when it is SERVFAIL,
NOTIMP or REFUSED
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: aurelien at aurel32 dot net
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=10452
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libc/10452] send_dg(): first answer overwritten when it is SERVFAIL, NOTIMP or REFUSED
2009-07-26 0:42 [Bug libc/10452] New: send_dg(): first answer overwritten when it is SERVFAIL, NOTIMP or REFUSED aurelien at aurel32 dot net
@ 2009-07-26 19:17 ` drepper at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: drepper at redhat dot com @ 2009-07-26 19:17 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2009-07-26 19:17 -------
I made some changes.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=10452
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-26 19:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-26 0:42 [Bug libc/10452] New: send_dg(): first answer overwritten when it is SERVFAIL, NOTIMP or REFUSED aurelien at aurel32 dot net
2009-07-26 19:17 ` [Bug libc/10452] " drepper at redhat dot com
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).