Daniel Colascione
2016-02-18 12:46:39 UTC
krb5int_dns_init has a conventional malloc-and-realloc-until-it-fits
loop, but inside the loop body, we're calling res_nsearch, which can do
non-trivial work. It'd be better to increase the initial guess from 2048
to something bigger; even 4k is a trivial amount of memory these days,
and I'm getting 2786-byte responses.
loop, but inside the loop body, we're calling res_nsearch, which can do
non-trivial work. It'd be better to increase the initial guess from 2048
to something bigger; even 4k is a trivial amount of memory these days,
and I'm getting 2786-byte responses.