freebsd-skq/usr.bin/find
jilles 461d06c693 MFC r286344: find: Fix segfault with very long path in -exec/-ok ... {} \;.
If the resulting argument is longer than MAXPATHLEN, realloc() was called to
extend the space, but the new pointer was not correctly stored.

Different from what OpenBSD has done, rewrite brace_subst() to calculate the
necessary space first and realloc() at most once.

As before, the e_len fields are not updated in case of a realloc.
Therefore, a following long argument will do another realloc.

PR:		201750
2015-08-28 20:53:08 +00:00
..
extern.h MFC r286344: find: Fix segfault with very long path in -exec/-ok ... {} \;. 2015-08-28 20:53:08 +00:00
find.1
find.c
find.h
function.c MFC r272762: Correct scale factor for T terabyte suffix 2014-10-11 00:30:57 +00:00
getdate.y
ls.c
main.c
Makefile
misc.c MFC r286344: find: Fix segfault with very long path in -exec/-ok ... {} \;. 2015-08-28 20:53:08 +00:00
operator.c
option.c