summary refs log tree commit diff
path: root/io/Makefile
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-08-25 11:17:06 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-10-07 11:09:16 -0300
commit1836bb2ebf62bd9a3588f2ed2d851c8ae810097a (patch)
treee3b9efc4c4ecd3663dc6dfff8b04749bfc1c0025 /io/Makefile
parent645277434a42efc547d2cac8bfede4da10b4049f (diff)
downloadglibc-1836bb2ebf62bd9a3588f2ed2d851c8ae810097a.tar.gz
glibc-1836bb2ebf62bd9a3588f2ed2d851c8ae810097a.tar.xz
glibc-1836bb2ebf62bd9a3588f2ed2d851c8ae810097a.zip
io: Fix ftw internal realloc buffer (BZ #28126)
The 106ff08526d3ca did not take in consideration the buffer might be
reallocated if the total path is larger than PATH_MAX.  The realloc
uses 'dirbuf', where 'dirstreams' is the allocated buffer.

Checked on x86_64-linux-gnu.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'io/Makefile')
-rw-r--r--io/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/io/Makefile b/io/Makefile
index 9871ecbc74..ecf65aba60 100644
--- a/io/Makefile
+++ b/io/Makefile
@@ -79,6 +79,7 @@ tests		:= test-utime test-stat test-stat2 test-lfs tst-getcwd \
 		   tst-futimens \
 		   tst-utimensat \
 		   tst-closefrom \
+		   tst-ftw-bz28126
 
 tests-time64 := \
   tst-futimens-time64 \