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 MFC r260336,r260355: find: Fix -lname and -ilname: 2014-01-12 23:17:56 +00:00
find.c find: Implement real -ignore_readdir_race. 2012-07-25 21:59:10 +00:00
find.h find: Include nanoseconds when comparing timestamps of files. 2013-03-17 22:51:58 +00:00
function.c MFC r272762: Correct scale factor for T terabyte suffix 2014-10-11 00:30:57 +00:00
getdate.y Fix world after byacc import: 2012-05-22 16:33:10 +00:00
ls.c Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t. 2012-09-27 23:31:19 +00:00
main.c find: Run when cwd cannot be opened, except with -execdir or -delete. 2013-02-10 18:56:37 +00:00
Makefile Add the Clang specific -Wmissing-variable-declarations to WARNS=6. 2013-04-19 19:45:00 +00:00
misc.c MFC r286344: find: Fix segfault with very long path in -exec/-ok ... {} \;. 2015-08-28 20:53:08 +00:00
operator.c Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
option.c Add an option for finding sparse files. 2013-03-03 20:10:56 +00:00