]> sourceware.org Git - glibc.git/commit
tst-*glob*: Do not check d_name size
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 3 Aug 2023 19:15:39 +0000 (21:15 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 3 Aug 2023 20:41:45 +0000 (22:41 +0200)
commit5e4435f960bb681cbea853fb41043fabeeaea1b4
tree3ab577f3d55764735a816ebbffabbd818bcc8a43
parentd97a12704bca5c2c326d856a69cd847c89784ae9
tst-*glob*: Do not check d_name size

Posix says that d_name is of unspecified size, and sizeof(d_name)
should not be used. It is indeed only 1-byte long in bits/dirent.h. We
can instead explictly provide the actual allocated size to
__strcpy_chk.
posix/tst-glob_lstat_compat.c
posix/tst-gnuglob-skeleton.c
This page took 0.038435 seconds and 5 git commands to generate.