opnsense-src/sys/fs
Rick Macklem d7b69bb536 nfscl: Fix a crash when a readdir entry has nul in it
Commit 026cdaa3b3a9 added a check for a nul or "/" in a file
name in a readdir reply.  Unfortunately, the minimal testing
done on it did not detect a bug that can cause the client
to crash.

This patch fixes the code so that it does not crash.

Note that a NFS server will not normally return a file
name in a readdir reply that has a nul or "/" in it,
so the crash is unlikely.

PR:	283965

(cherry picked from commit f9f0a1d61c7b97c705246c747baec385e0592966)
2025-01-23 18:25:10 -08:00
..
autofs sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
cd9660 cd9660: Apply the file and directory mode masks bits to all 12 access bits 2024-12-27 10:50:56 -05:00
cuse cuse: Use NULL for SYSUNINIT's last arg, which is a pointer type 2024-12-15 10:20:53 +08:00
deadfs sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
devfs kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
ext2fs ext2fs: 'struct ufid': Re-order fields and unpack 2025-01-17 14:51:54 +01:00
fdescfs Fix MNT_IGNORE for devfs, fdescfs and nullfs 2024-04-22 15:48:15 +02:00
fifofs sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
fuse fusefs: fix a memory leak 2025-01-20 09:51:44 -07:00
mntfs sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
msdosfs fs: Add static asserts for the size of fid structures 2024-12-20 14:07:12 -08:00
nfs nfs_commonsubs.c: Make all upper case user domain work 2024-12-07 17:41:52 -08:00
nfsclient nfscl: Fix a crash when a readdir entry has nul in it 2025-01-23 18:25:10 -08:00
nfsserver nfs: Add support for the NFSv4.2 mode_umask attribute 2024-12-07 17:38:15 -08:00
nullfs nullfs: stop lying about mount flags in statfs(2) 2024-12-27 08:24:55 +02:00
procfs uio: Use switch statements when handling UIO_READ vs UIO_WRITE 2024-11-30 08:55:57 -05:00
pseudofs pseudofs: fix off by one in hash iteration in pfs_purge 2023-11-24 17:22:15 +00:00
smbfs Add vnode_pager_clean_{a,}sync(9) 2024-01-18 02:51:33 +02:00
tarfs tarfs: 'struct tarfs_fid': Switch 'gen' to 'u_int', avoid packing 2025-01-17 14:51:32 +01:00
tmpfs stat(2): add st_filerev 2025-01-23 11:46:57 +02:00
udf fs: Add static asserts for the size of fid structures 2024-12-20 14:07:12 -08:00
unionfs cred: proc_set_cred(), proc_unset_cred(): Update user's process count 2025-01-16 19:06:59 +01:00