]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299986
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 23 May 2016 05:27:31 +0000 (05:27 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 23 May 2016 05:27:31 +0000 (05:27 +0000)
commita1e910527f083d7431e863e044fc6c18a725f75d
tree264440de04ffe54dacdce69797ec54b5ff02ef4f
parent986630535eeff50d389db203f6879c6b9194ab1e
MFC r299986

Actually use the loop interation limit so carefully computed on the
previous line to prevent buffer overflow.  This turns out to not be
important because the upstream xdr code already capped the object
size at the proper value.  Using the correct limit here looks a lot
less scary and should please Coverity.

Reported by: Coverity
CID: 11993091199310

git-svn-id: svn://svn.freebsd.org/base/stable/10@300463 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/rpc.lockd/lock_proc.c