diff options
author | Xiaoming Ni <nixiaoming@huawei.com> | 2020-11-26 13:35:10 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-11-26 17:35:58 -0300 |
commit | 106ff08526d3ca574ba86d891450ea55aa929712 (patch) | |
tree | bdf0f8a9fee37a63ce497ccdce712711023f7a61 /sysdeps/pthread/tst-kill6.c | |
parent | db07fae8250401adb2b97ab3e53d41da2a6bd767 (diff) | |
download | glibc-106ff08526d3ca574ba86d891450ea55aa929712.zip glibc-106ff08526d3ca574ba86d891450ea55aa929712.tar.gz glibc-106ff08526d3ca574ba86d891450ea55aa929712.tar.bz2 |
io: nftw/ftw: Fix stack overflow with large nopenfd [BZ #26353]
The nopenfd value is used as argument for the internal buffer on
ftw_statup, which is allocated with alloca and might trigger
a stack overflow for large values. This patch replaces the memory
allocation to use malloc instead.
Checked on x86_64-linux-gnu.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/pthread/tst-kill6.c')
0 files changed, 0 insertions, 0 deletions