freebsd-src/usr.sbin/fstyp
Mark Johnston 878ede1a0d fstyp: Fix some memory safety bugs
In the hammer2 label reader, make sure to check for a NULL return from
read_buf().

In the NTFS label reader,
- Avoid an infinite loop if a record length is 0.
- Avoid walking past the end of the buffer.
- When a label is found, avoid reading past the end of the buffer.

PR:		278281
Reviewed by:	emaste
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D47292
2024-10-28 15:03:53 +00:00
..
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
apfs.c
befs.c
cd9660.c
exfat.c
ext2fs.c
fstyp.8 man filesystems: fix xrefs after move to section 4 2024-05-16 10:25:29 -06:00
fstyp.c
fstyp.h
geli.c
hammer2_disk.h
hammer2.c fstyp: Fix some memory safety bugs 2024-10-28 15:03:53 +00:00
hammer_disk.h
hammer.c
hfsplus.c
Makefile zfs: merge openzfs/zfs@b10992582 2024-09-09 18:13:02 +02:00
Makefile.depend
Makefile.depend.options
msdosfs.c
msdosfs.h
ntfs.c fstyp: Fix some memory safety bugs 2024-10-28 15:03:53 +00:00
ufs.c
zfs.c