summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/engine.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-10-31 22:35:03 +0000
committerjeff <jeff@FreeBSD.org>2002-10-31 22:35:03 +0000
commitb2bc94cc0d79ef0ae249eac8fcd4547ca9e63c1d (patch)
tree1e5a0173186d567be63306862a2fffb8558bf8f0 /lib/libc/regex/engine.c
parent594d92f0f90fc612e2bec96bd4e994b22ff77551 (diff)
downloadFreeBSD-src-b2bc94cc0d79ef0ae249eac8fcd4547ca9e63c1d.zip
FreeBSD-src-b2bc94cc0d79ef0ae249eac8fcd4547ca9e63c1d.tar.gz
- Introduce a new macro, since that's what nfs loves, called
nfsm_srvpathsiz. This macro plucks a length out of an rpc request and verifies that its size does not exceed NFS_MAXPATHLEN. If it does it generates an ENAMETOOLONG response. - Use this macro, and the existing nfsm_srvnamsiz macro in two places where we deal with paths passed in by the client. This fixes a linux interoperability bug. Linux was sending oversized path components which would cause us to ignore the request all together. This causes linux to hang indefinitly while it waits for a response. This could still happen in other cases where we error out with EBADRPC. Sponsored by: Isilon Systems, Inc. Reviewed by: alfred, fabbri@isilon.com, neal@isilon.com
Diffstat (limited to 'lib/libc/regex/engine.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud