Skip to content
Commit 40c0add7 authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

resolve: Remove __res_context_query alloca usage



The bufsize on current Linux build is:

   size_t bufsize = (type == 439963904 ? 2 : 1) * (12 + 4 + 255 + 1);

So with upper bound as 544 (2 * (12 + 4 + 255 + 1)).  However, it might
increase to 2 * PACKETSIZE later with malloc.  The default scratch_buffer
should fullfill the most usual allocation requirement.

Checked on x86_64-linux-gnu and i686-linux-gnu.
Reviewed-by: default avatarJoe Simmons-Talbott <josimmon@redhat.com>
parent 08e9a60a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment