View | Details | Raw Unified | Return to bug 18287
Collapse All | Expand All

(-)a/resolv/nss_dns/dns-host.c (-2 / +2 lines)
Lines 615-621 getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype, Link Here
615
  int have_to_map = 0;
615
  int have_to_map = 0;
616
  uintptr_t pad = -(uintptr_t) buffer % __alignof__ (struct host_data);
616
  uintptr_t pad = -(uintptr_t) buffer % __alignof__ (struct host_data);
617
  buffer += pad;
617
  buffer += pad;
618
  if (__glibc_unlikely (buflen < sizeof (struct host_data) + pad))
618
  buflen = buflen > pad ? buflen - pad : 0;
619
  if (__glibc_unlikely (buflen < sizeof (struct host_data)))
619
    {
620
    {
620
      /* The buffer is too small.  */
621
      /* The buffer is too small.  */
621
    too_small:
622
    too_small:
622
- 

Return to bug 18287