HomeFreeBSD

* limit size of buffers to RPC_MAXDATASIZE

Description

  • limit size of buffers to RPC_MAXDATASIZE
  • don't leak memory
  • be more picky about bad parameters

From:

https://raw.githubusercontent.com/guidovranken/rpcbomb/master/libtirpc_patch.txt
https://github.com/guidovranken/rpcbomb/blob/master/rpcbind_patch.txt

via NetBSD.

Reviewed by: emaste, cem (earlier version)
Differential Revision: https://reviews.freebsd.org/D10922
MFC after: 3 days

Details

Provenance
delphijAuthored on
Reviewer
emaste
Differential Revision
D10922: limit buffer sizes.
Parents
rS319368: Welcome back bapt@ to portmgr
Branches
Unknown
Tags
Unknown