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

(-)exim4-4.76.orig/src/dkim.c (+3 lines)
Lines 44-49 Link Here
44
               "%.*s", (int)len, (char *)((rr->data)+rr_offset));
44
               "%.*s", (int)len, (char *)((rr->data)+rr_offset));
45
      rr_offset+=len;
45
      rr_offset+=len;
46
      answer_offset+=len;
46
      answer_offset+=len;
47
      if (answer_offset >= PDKIM_DNS_TXT_MAX_RECLEN) {
48
        return PDKIM_FAIL;
49
      }
47
    }
50
    }
48
  }
51
  }
49
  else return PDKIM_FAIL;
52
  else return PDKIM_FAIL;
(-)exim4-4.76.orig/src/pdkim/pdkim.h (-2 / +2 lines)
Lines 29-36 Link Here
29
29
30
/* -------------------------------------------------------------------------- */
30
/* -------------------------------------------------------------------------- */
31
/* Length of the preallocated buffer for the "answer" from the dns/txt
31
/* Length of the preallocated buffer for the "answer" from the dns/txt
32
   callback function. */
32
   callback function. This should match the maximum RDLENGTH from DNS. */
33
#define PDKIM_DNS_TXT_MAX_RECLEN    4096
33
#define PDKIM_DNS_TXT_MAX_RECLEN    (1 << 16)
34
34
35
/* -------------------------------------------------------------------------- */
35
/* -------------------------------------------------------------------------- */
36
/* Function success / error codes */
36
/* Function success / error codes */

Return to bug 28006