freebsd-skq/usr.sbin/rpcbind
Enji Cooper 6ee7c85891 Bounds check rpcbs_rmtcall(..) to ensure rtype is less than RPCBVERS_STAT
Not returning if rtype == RPCBVERS_STAT will cause us to overrun the inf array, as
it's defined to be exactly RPCBVERS_STAT elements in rpcb_prot.x:

> include/rpc/rpcb_prot.x:typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];

The proposed change also matches the rest of the rtype upper bound checks in the
file, so the original change was likely a typo.

MFC after: 2 weeks
Reported by: Coverity
CID: 1007567
Reviewed by: truckman
Sponsored by: EMC / Isilon Storage Division
2016-06-08 12:45:22 +00:00
..
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
check_bound.c Remove a useless if (x != NULL) check before calling free on allocated_uaddr 2016-05-29 06:01:18 +00:00
Makefile "source routing" in rpcbind 2016-01-06 00:00:11 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
pmap_svc.c
rpcb_stat.c Bounds check rpcbs_rmtcall(..) to ensure rtype is less than RPCBVERS_STAT 2016-06-08 12:45:22 +00:00
rpcb_svc_4.c
rpcb_svc_com.c rpcbind: use our roundup() macro when available through <sys/param.h>. 2016-05-02 02:15:05 +00:00
rpcb_svc.c
rpcbind.8
rpcbind.c Staticize variables only used in rpcbind.c 2016-05-29 07:01:12 +00:00
rpcbind.h "source routing" in rpcbind 2016-01-06 00:00:11 +00:00
security.c
util.c Follow up to r300932 2016-05-29 20:28:01 +00:00
warmstart.c