freebsd-dev/usr.bin/truss
John Baldwin 890843c15b Rework the argv and env string fetching for execve to be more robust.
Before truss would fetch 100 string pointers and happily walk off the end
of the array if it never found a NULL.  This also means for a short argv
list it could fail entirely if the 100 string pointers spanned into an
unmapped page.

Instead, fetch page-aligned blocks of string pointers in a loop fetching
each string until a NULL is found.

While here, make use of the open memstream file descriptor instead of
allocating a temporary array.  This allows us to fetch each string once
instead of twice.
2015-08-20 14:33:30 +00:00
..
amd64-fbsd32.c Various style and whitespace fixes. 2015-08-19 20:02:03 +00:00
amd64-fbsd.c Various style and whitespace fixes. 2015-08-19 20:02:03 +00:00
amd64-linux32.c Various style and whitespace fixes. 2015-08-19 20:02:03 +00:00
amd64linux32.conf
arm-fbsd.c Various style and whitespace fixes. 2015-08-19 20:02:03 +00:00
extern.h Remove ia64. 2014-07-07 00:27:09 +00:00
fbsd32.conf
i386-fbsd.c Various style and whitespace fixes. 2015-08-19 20:02:03 +00:00
i386-linux.c Various style and whitespace fixes. 2015-08-19 20:02:03 +00:00
i386.conf
i386linux.conf
main.c Always use %j with an intmax_t cast to print time_t values. time_t is 2015-08-19 20:09:14 +00:00
Makefile Use INCLUDEDIR rather than hard coded /usr/include 2015-06-11 14:25:53 +00:00
Makefile.depend.amd64 new depends 2015-06-16 23:37:19 +00:00
mips-fbsd.c Various style and whitespace fixes. 2015-08-19 20:02:03 +00:00
powerpc64-fbsd.c Various style and whitespace fixes. 2015-08-19 20:02:03 +00:00
powerpc-fbsd.c Various style and whitespace fixes. 2015-08-19 20:02:03 +00:00
setup.c - Make truss thread-aware. 2012-09-16 14:38:01 +00:00
sparc64-fbsd.c Various style and whitespace fixes. 2015-08-19 20:02:03 +00:00
syscall.h - Decode the arguments for several signal-related system calls: sigpending, 2015-08-17 17:52:28 +00:00
syscalls.c Rework the argv and env string fetching for execve to be more robust. 2015-08-20 14:33:30 +00:00
truss.1
truss.h Revert r247300 for now. I'll post a new changeset for review. 2013-02-26 19:46:59 +00:00