diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2010-04-04 23:19:11 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2010-04-04 23:19:11 +0000 |
commit | 71f4a9b7efa07b37f3300fd48a4c8343ce712d87 (patch) | |
tree | 5cf21e6a590277679edac1e6664a01a44d39ff15 /lib/libc | |
parent | ca9540f0dcc7ca3a4a9fe641bdbc0e69de32c895 (diff) | |
download | FreeBSD-src-71f4a9b7efa07b37f3300fd48a4c8343ce712d87.zip FreeBSD-src-71f4a9b7efa07b37f3300fd48a4c8343ce712d87.tar.gz |
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
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions