Differences From Artifact [fa7714f07b]:
- File
configure.ac
— part of check-in
[22b11fa7e8]
at
2024-04-14 22:59:33
on branch trunk
— configure: Use sed | grep instead of awk
BSD awk cannot handle binary files.
QNX grep cannot handle binary files.
BusyBox tr cannot strip non-printable characters.This only leaves sed to strip non-printable characters and then using
grep. (user: js, size: 61189) [annotate] [blame] [check-ins using]
To Artifact [63f2b5a434]:
- File
configure.ac
— part of check-in
[c615b62ed8]
at
2024-04-16 23:50:40
on branch trunk
— Don't use readdir_r
readdir_r can easily lead to stack overflows if the path is longer than
the space reserved for d_name in dirent. While some OSes use a length of
MAXNAMLEN + 1, others use just 1. This could be worked around by always
allocating a buffer of sizeof(struct dirent) + MAXNAMLEN (which would
work only in case MAXNAMLEN is actually the longest readdir_r can
return), but is probably not worth the risk, especially as glibc has
entirely deprecated readdir_r and it is expected to be removed from
POSIX. (user: js, size: 60786) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1280 1281 1282 1283 1284 1285 1286 | AC_CHECK_FUNC(symlink, [ AC_DEFINE(OF_HAVE_SYMLINK, 1, [Whether we have symlink()]) ]) AC_CHECK_FUNCS([lstat]) AC_CHECK_MEMBERS([struct stat.st_birthtime], [], [], [ #include <sys/stat.h> ]) | < < < < < < < < < < < < < < < < < < < < | 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 | AC_CHECK_FUNC(symlink, [ AC_DEFINE(OF_HAVE_SYMLINK, 1, [Whether we have symlink()]) ]) AC_CHECK_FUNCS([lstat]) AC_CHECK_MEMBERS([struct stat.st_birthtime], [], [], [ #include <sys/stat.h> ]) ]) AC_CHECK_HEADERS(dirent.h) AC_CHECK_FUNCS([sysconf gmtime_r localtime_r]) case "$host_os" in amigaos* | morphos*) |
︙ | ︙ |