Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150985081
D53368.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
735 B
Referenced Files
None
Subscribers
None
D53368.id.diff
View Options
diff --git a/sys/fs/nfsclient/nfs_clrpcops.c b/sys/fs/nfsclient/nfs_clrpcops.c
--- a/sys/fs/nfsclient/nfs_clrpcops.c
+++ b/sys/fs/nfsclient/nfs_clrpcops.c
@@ -2212,7 +2212,7 @@
NFSM_DISSECT(tl, u_int32_t *, 2 * NFSX_UNSIGNED
+ NFSX_VERF);
rlen = fxdr_unsigned(int, *tl++);
- if (rlen == 0) {
+ if (rlen <= 0 || rlen > len) {
error = NFSERR_IO;
goto nfsmout;
} else if (rlen < len) {
@@ -7257,7 +7257,7 @@
NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED + NFSX_VERF);
rlen = fxdr_unsigned(int, *tl++);
NFSCL_DEBUG(4, "nfsrpc_writeds: len=%d rlen=%d\n", len, rlen);
- if (rlen == 0) {
+ if (rlen <= 0 || rlen > len) {
error = NFSERR_IO;
goto nfsmout;
} else if (rlen < len) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 7:43 AM (8 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30948519
Default Alt Text
D53368.id.diff (735 B)
Attached To
Mode
D53368: nfs_clrpcops.c: Check for too large a write reply
Attached
Detach File
Event Timeline
Log In to Comment