NetBSD/usr.bin/find
mrg 81a719df6e avoid various use-after-free issues.
create a ptrdiff_t offset between the start of an allocation region and
some interesting pointer, so it can be adjusted with this offset after
realloc() returns.  for pdisk(), realloc() is a locally inlind malloc()
and free() pair.

for mail(1), this required a little bit more effort as the old pointer
was passed into another file for fix-ups there, and that code needed to
be adjusted for offset vs old pointer usage.

found by GCC 12.
2023-08-10 20:36:28 +00:00
..
Makefile Revert CC_WNO_USE_AFTER_FREE from Makefile's (thanks uwe@) 2023-08-03 14:56:36 +00:00
extern.h Use /dev/tty for SIGINFO 2022-01-22 14:08:19 +00:00
find.1
find.c
find.h Use /dev/tty for SIGINFO 2022-01-22 14:08:19 +00:00
function.c PR/57313: Timo Buhrmester: Don't bail if "." cannot be opened. From FreeBSD 2023-04-01 15:57:20 +00:00
ls.c
main.c PR/57313: Timo Buhrmester: Don't bail if "." cannot be opened. From FreeBSD 2023-04-01 15:57:20 +00:00
misc.c avoid various use-after-free issues. 2023-08-10 20:36:28 +00:00
operator.c
option.c