Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 May 2021 16:33:36 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 68c254426467 - main - nfs: even up value returned by nfsrv_parsename with copyinstr
Message-ID:  <202105311633.14VGXafw018074@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=68c254426467e3f900f9a19de4dd9a234ea75388

commit 68c254426467e3f900f9a19de4dd9a234ea75388
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-05-31 16:32:04 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-05-31 16:32:04 +0000

    nfs: even up value returned by nfsrv_parsename with copyinstr
    
    Reported by:    dim
    Reviewed by:    rmacklem
---
 sys/fs/nfsserver/nfs_nfsdsubs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/fs/nfsserver/nfs_nfsdsubs.c b/sys/fs/nfsserver/nfs_nfsdsubs.c
index 2b6e17752544..8c7db36bbd05 100644
--- a/sys/fs/nfsserver/nfs_nfsdsubs.c
+++ b/sys/fs/nfsserver/nfs_nfsdsubs.c
@@ -2065,7 +2065,7 @@ nfsrv_parsename(struct nfsrv_descript *nd, char *bufp, u_long *hashp,
 	    }
 	}
 	*tocp = '\0';
-	*outlenp = (size_t)outlen;
+	*outlenp = (size_t)outlen + 1;
 	if (hashp != NULL)
 		*hashp = hash;
 nfsmout:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105311633.14VGXafw018074>