diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-09-20 10:16:07 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-10-02 10:54:27 -0300 |
commit | 40c0add7d48739f5d89ebba255c1df26629a76e2 (patch) | |
tree | a378e6b1243cafe665c59578e81ddb75ae3cb44b /include | |
parent | 08e9a60a1ad34425a849c37611e55dd9fb4d3618 (diff) | |
download | glibc-40c0add7d48739f5d89ebba255c1df26629a76e2.tar.gz glibc-40c0add7d48739f5d89ebba255c1df26629a76e2.tar.xz glibc-40c0add7d48739f5d89ebba255c1df26629a76e2.zip |
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: Joe Simmons-Talbott <josimmon@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions