]> git.ipfire.org Git - thirdparty/glibc.git/commit
linux: Simplify opendir buffer allocation
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Sun, 12 Apr 2020 20:42:35 +0000 (17:42 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 16 Oct 2020 17:19:23 +0000 (14:19 -0300)
commit4b962c9e859de23b461d61f860dbd3f21311e83a
tree990816522fcfd5b363a5a3a4b25ff41531f52feb
parent905ae44c77a4b899100de99360823a586e095622
linux: Simplify opendir buffer allocation

The fallback allocation is removed, so the possible size constraint
should be analyzed just once; __alloc_dir assumes that 'statp'
argument is non-null, and the max_buffer_size move to close its
used.

Checked on x86_64-linux-gnu and i686-linux-gnu.
include/dirent.h
sysdeps/unix/sysv/linux/opendir.c