Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177422459
D60898.1794344585.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
874 B
Referenced Files
None
Subscribers
None
D60898.1794344585.diff
View Options
diff --git a/lib/libc/xdr/xdr.c b/lib/libc/xdr/xdr.c
--- a/lib/libc/xdr/xdr.c
+++ b/lib/libc/xdr/xdr.c
@@ -47,6 +47,8 @@
#include <stdlib.h>
#include <string.h>
+#include <rpc/rpc.h>
+#include <rpc/rpc_com.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include "un-namespace.h"
@@ -762,7 +764,7 @@
bool_t
xdr_wrapstring(XDR *xdrs, char **cpp)
{
- return (xdr_string(xdrs, cpp, ~0U));
+ return (xdr_string(xdrs, cpp, RPC_MAXDATASIZE));
}
/*
diff --git a/sys/xdr/xdr.c b/sys/xdr/xdr.c
--- a/sys/xdr/xdr.c
+++ b/sys/xdr/xdr.c
@@ -46,6 +46,8 @@
#include <sys/malloc.h>
#include <sys/module.h>
+#include <rpc/rpc.h>
+#include <rpc/rpc_com.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
@@ -685,7 +687,7 @@
bool_t
xdr_wrapstring(XDR *xdrs, char **cpp)
{
- return (xdr_string(xdrs, cpp, ~0U));
+ return (xdr_string(xdrs, cpp, RPC_MAXDATASIZE));
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 10, 9:03 PM (13 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41631643
Default Alt Text
D60898.1794344585.diff (874 B)
Attached To
Mode
D60898: xdr: Limit xdr_wrapstring
Attached
Detach File
Event Timeline