]> git.ipfire.org Git - thirdparty/glibc.git/commit
nscd: Switch to struct scratch_buffer in adhstaiX [BZ #18023]
authorFlorian Weimer <fweimer@redhat.com>
Mon, 25 Jun 2018 14:05:46 +0000 (16:05 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 25 Jun 2018 16:41:54 +0000 (18:41 +0200)
commit6b7b2abac75f969a86c537d64adf003378e24113
tree2a21c31d51b43cabd497965a4cfd88f2ea674b61
parent2f9f0d182eb87bfab49534d4f9ac102d6c0c0469
nscd: Switch to struct scratch_buffer in adhstaiX [BZ #18023]

The pre-allocation of the three scratch buffers increased the initial
stack size somewhat, but if retries are needed, the previous version
used more stack space if extend_alloca could not merge allocations.
Lack of alloca accounting also means could be problematic with
extremely large NSS responses, too.

[BZ #18023]
* nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
of extend_alloca.
ChangeLog
nscd/aicache.c