NetBSD/usr.bin/sort
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
append.c
fields.c
files.c avoid various use-after-free issues. 2023-08-10 20:36:28 +00:00
fsort.c
fsort.h
init.c
msort.c
pathnames.h
radix_sort.c
sort.1
sort.c
sort.h
tmp.c