freebsd-dev/usr.bin/rpcgen
Brooks Davis 7c8b268a12 rpcgen: make compiler arglist allocation dynamic
Limit argmax to an absurdly large value prevent overflow (no overflow
possible on FreeBSD due to ARG_MAX).

In CheriBSD we exceed the 19 non-NULL arguments in the static array.  Add
a simple size doubling allocator and increase the default to 32.

GC remnants of support for fixed arguments.

Reviewed by:	archardson (prior version), James Clarke (prior version)
MFC after:	1 week
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D21971
2019-10-15 16:05:17 +00:00
..
Makefile
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
rpc_clntout.c
rpc_cout.c rpcgen(1): Avoid unused variable warning on generated code. 2017-01-11 23:05:29 +00:00
rpc_hout.c
rpc_main.c rpcgen: make compiler arglist allocation dynamic 2019-10-15 16:05:17 +00:00
rpc_parse.c Plug two resource leaks. 2017-12-28 05:33:29 +00:00
rpc_parse.h
rpc_sample.c
rpc_scan.c Plug two resource leaks. 2017-12-28 05:33:29 +00:00
rpc_scan.h
rpc_svcout.c rpcgen(1): Check getrlimit() return for generated code. 2017-01-12 14:44:41 +00:00
rpc_tblout.c
rpc_util.c
rpc_util.h
rpcgen.1