Home | History | Annotate | Download | only in find
History log of /src/usr.bin/find/misc.c
RevisionDateAuthorComments
 1.16  10-Aug-2023  mrg 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.
 1.15  22-Jan-2022  christos Use /dev/tty for SIGINFO
Fix some size_t<->int
 1.14  11-Oct-2006  apb De-__P(), remove trailing spaces, sprinkle a few const, WARNS=4.
 1.13  26-Aug-2006  christos More programs using efun.
 1.12  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.11  22-May-2003  yamt protect from signals properly.
(fix crashes when get SIGINFO.)
 1.10  22-May-2003  yamt rename a global variable, 'entry', to 'g_entry'.
it was confusing because we have many local 'entry' variable.
 1.9  27-Sep-2002  provos support for -empty, -execdir, -mindepth, -maxdepth to match other UNIX-like
systems. based on work by tholo@openbsd.org. approved by perry.
 1.8  21-Sep-2001  enami Reallocate memory correctly while substituting the braces.
 1.7  02-Feb-1998  mrg merge lite2, sans getvfsbyname in functions.c (waiting on libc)
 1.6  19-Oct-1997  lukem fix .Nm usage, deprecate register, mostly WARNSify (needs minor rewrite to fix)
 1.5  09-Jan-1997  tls RCS ID police
 1.4  23-Jun-1996  mrg fix incorrect (dated?) comment.
 1.3  30-Dec-1993  jtc Merged our bugfixes with the 4.4BSD find from uunet.
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  01-Sep-1995  jtc imported from 44lite2
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources

RSS XML Feed