Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168133594
D56779.id177161.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
477 B
Referenced Files
None
Subscribers
None
D56779.id177161.diff
View Options
diff --git a/sys/fs/nfsclient/nfs_clsubs.c.xxx b/sys/fs/nfsclient/nfs_clsubs.c
--- a/sys/fs/nfsclient/nfs_clsubs.c.xxx
+++ b/sys/fs/nfsclient/nfs_clsubs.c
@@ -263,9 +263,11 @@
ncl_getcookie(struct nfsnode *np, off_t off, int add)
{
struct nfsdmap *dp, *dp2;
- int pos;
+ u_int pos;
nfsuint64 *retval = NULL;
+ if (off > 1024 * 1024 * 1024)
+ goto out;
pos = (uoff_t)off / NFS_DIRBLKSIZ;
if (pos == 0 || off < 0) {
KASSERT(!add, ("nfs getcookie add at <= 0"));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 27, 1:02 PM (1 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37386990
Default Alt Text
D56779.id177161.diff (477 B)
Attached To
Mode
D56779: nfs_clsubs.c: Fix ncl_getcookie() when "pos" is negative
Attached
Detach File
Event Timeline
Log In to Comment