diff options
author | Christophe JAILLET <[email protected]> | 2024-02-18 22:16:53 +0100 |
---|---|---|
committer | Trond Myklebust <[email protected]> | 2024-03-09 09:14:51 -0500 |
commit | 698ad1a538da0b6bf969cfee630b4e3a026afb87 (patch) | |
tree | ed2c010820266d04cda083361d58657f1013e1f0 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 1548036ef1204df65ca5a16e8b199c858cb80075 (diff) |
NFS: Fix an off by one in root_nfs_cat()
The intent is to check if 'dest' is truncated or not. So, >= should be
used instead of >, because strlcat() returns the length of 'dest' and 'src'
excluding the trailing NULL.
Fixes: 56463e50d1fc ("NFS: Use super.c for NFSROOT mount option parsing")
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Benjamin Coddington <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions