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; 3+ 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] 3+ 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; 3+ 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] 3+ messages in thread

* [Bug libc/10452] send_dg(): first answer overwritten when it is SERVFAIL, NOTIMP or REFUSED
       [not found] <bug-10452-131@http.sourceware.org/bugzilla/>
@ 2014-07-01  7:30 ` fweimer at redhat dot com
  0 siblings, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-07-01  7:30 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=10452

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
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-07-01  7:30 UTC | newest]

Thread overview: 3+ 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
     [not found] <bug-10452-131@http.sourceware.org/bugzilla/>
2014-07-01  7:30 ` fweimer 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).