Hash :
6d488119
Author :
Date :
2023-02-04T10:07:11
fts: pacify GCC 13 -Wuse-after-free Problem reported by Peter Frazier in: https://lists.gnu.org/r/bug-gnulib/2023-02/msg00000.html * lib/fts.c: Include stdint.h. (fts_build): Do not access freed pointer directly; instead, save its bit-pattern into a uintptr_t, and use that to compare. (ADJUST): Likewise, but more trickily since this hack puns pointer types and relies on undefined behavior. * modules/fts (Depends-on): Add stdint.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
Description:
Traverse a file hierarchy.
Files:
lib/fts_.h
lib/fts.c
lib/fts-cycle.c
m4/fts.m4
Depends-on:
alignasof
attribute
c99
closedir
cycle-check
d-ino
d-type
fchdir
fcntl
fcntl-h
flexmember
fstat
hash
i-ring
lstat
memmove
open
openat-h
opendir
opendirat
readdir
stdbool
stddef
stdint
configure.ac:
gl_FUNC_FTS
dnl Use this version of fts unconditionally, since the GNU libc and
dnl NetBSD versions have bugs and/or unnecessary limitations.
gl_CONDITIONAL([GL_COND_OBJ_FTS], [true])
Makefile.am:
if GL_COND_OBJ_FTS
lib_SOURCES += fts.c
endif
Include:
"fts_.h"
License:
GPL
Maintainer:
Jim Meyering