]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Harden the experimental NFS server a little, by adding extra checks
authorRick Macklem <rmacklem@FreeBSD.org>
Sun, 4 Apr 2010 23:19:11 +0000 (23:19 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Sun, 4 Apr 2010 23:19:11 +0000 (23:19 +0000)
commit54bde1faa56bdf08b321dd375f7768fdd9d32886
tree5cf21e6a590277679edac1e6664a01a44d39ff15
parent8ef6f9f2d254be35bb8a87ee6da7a12eddc22357
Harden the experimental NFS server a little, by adding extra checks
in the readdir functions for non-positive byte count arguments.
For the negative case, set it to the maximum allowable, since it
was actually a large positive value (unsigned) on the wire.
Also, fix up the readdir function comment a bit.

Suggested by: dillon AT apollo.backplane.com
MFC after: 2 weeks
sys/fs/nfsserver/nfs_nfsdport.c