freebsd-dev/sys/fs
John Baldwin c70e615051 udf: Reject read requests with an invalid length
- If the size is negative or if rounding it up to a multiple of
  the block size overflows, fail the read request with ERANGE.

- While here, add a sanity check that the ICB length for the root
  directory is at least as long as a minimum-sized file entry.

PR:		257768
Reported by:	Robert Morris <rtm@lcs.mit.edu>
MFC after:	1 week
Sponsored by:	FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D41220
2023-08-04 16:40:19 -07:00
..
autofs spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
cd9660 cd9660: do not leak buffers in cd9660_rrip_loop() 2023-08-01 01:55:13 +03:00
cuse cuse(3): Cosmetic change about testing boolean values. 2022-10-04 13:51:06 +02:00
deadfs deadfs: consistently return EOPNOTSUPP for fplookup vops 2023-04-06 15:20:41 +00:00
devfs spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ext2fs ext2fs: Add large sectorsize disks support 2023-05-21 08:17:47 +03:00
fdescfs fdescfs: add a mount option rdlnk 2023-07-13 04:14:20 +03:00
fifofs fifofs: ansify 2023-02-07 23:18:51 +00:00
fuse vfs: use __enum_uint8 for vtype and vstate 2023-07-05 15:06:30 +00:00
mntfs spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
msdosfs msdosfs: zero partially valid extended cluster 2023-07-11 03:49:09 +03:00
nfs vfs: use __enum_uint8 for vtype and vstate 2023-07-05 15:06:30 +00:00
nfsclient vfs: use __enum_uint8 for vtype and vstate 2023-07-05 15:06:30 +00:00
nfsserver nfsserver: Fix a typo in a source code comment 2023-08-02 11:27:30 +02:00
nullfs nullfs: ansify 2023-02-07 23:22:27 +00:00
procfs procfs: Sync a documentation comment with the code. 2023-04-10 17:58:46 +00:00
pseudofs pseudofs: Fix a potential out-of-bounds access in pfs_lookup() 2023-06-23 09:54:39 -04:00
smbfs spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
tarfs vfs: use __enum_uint8 for vtype and vstate 2023-07-05 15:06:30 +00:00
tmpfs vfs: use __enum_uint8 for vtype and vstate 2023-07-05 15:06:30 +00:00
udf udf: Reject read requests with an invalid length 2023-08-04 16:40:19 -07:00
unionfs vfs: use __enum_uint8 for vtype and vstate 2023-07-05 15:06:30 +00:00