[Bug network/23005] New: Crash in __res_context_send after memory allocation failure

schwab@linux-m68k.org sourceware-bugzilla@sourceware.org
Tue Mar 27 10:23:00 GMT 2018


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

            Bug ID: 23005
           Summary: Crash in __res_context_send after memory allocation
                    failure
           Product: glibc
           Version: 2.26
            Status: NEW
          Severity: normal
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: schwab@linux-m68k.org
  Target Milestone: ---

When __res_context_send failed to allocate memory for the private copy of
nsaddr_list it may crash during the next call when checking whether the
resolver context has changed.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6703567 in sock_eq (a1=0x7ffff72e7bc4 <_res@GLIBC_2.2.5+36>, a2=0x0)
    at res_send.c:1416

#0  0x00007ffff6703567 in sock_eq (a1=0x7ffff72e7bc4 <_res@GLIBC_2.2.5+36>, 
    a2=0x0) at res_send.c:1416
1416            if (a1->sin6_family == a2->sin6_family) {
#1  0x00007ffff6704207 in __res_context_send (ctx=ctx@entry=0x615d00, 
    buf=buf@entry=0x7fffffffbe90 "4H\001", buflen=buflen@entry=35, 
    buf2=buf2@entry=0x7fffffffbeb4 "yQ\001", buflen2=buflen2@entry=35, 
    ans=<optimized out>, ans@entry=0x7fffffffcb30 "c\227_\260", 
    anssiz=<optimized out>, ansp=0x7fffffffd790, ansp2=0x7fffffffd798, 
    nansp2=0x7fffffffd780, resplen2=0x7fffffffd784, 
    ansp2_malloced=0x7fffffffd788) at res_send.c:442
442                                         && !sock_eq((struct sockaddr_in6 *)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list