opnsense-src/sys/geom/label
Mark Johnston 41dbff7351 geom_label: Add more validation for NTFS volume tasting
- Ensure that the computed MFT record size isn't negative or larger than
  maxphys before trying to read $Volume.
- Guard against truncated records in volume metadata.
- Ensure that the record length is large enough to contain the volume
  name.
- Verify that the (UTF-16-encoded) volume name's length is a multiple of
  two.

PR:		258833, 258914
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit f0a08fa9f5)
2021-10-18 09:07:58 -04:00
..
g_label.c g_label: Handle small sector sizes when tasting 2021-09-14 08:50:09 -04:00
g_label.h geom_label: Make glabel labels more trivial by separating the tasting 2020-07-26 00:44:59 +00:00
g_label_disk_ident.c geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
g_label_ext2fs.c g_label: Handle small sector sizes when tasting 2021-09-14 08:50:09 -04:00
g_label_flashmap.c geom_label: Make glabel labels more trivial by separating the tasting 2020-07-26 00:44:59 +00:00
g_label_gpt.c geom_label: Make glabel labels more trivial by separating the tasting 2020-07-26 00:44:59 +00:00
g_label_iso9660.c g_label: Handle small sector sizes when tasting 2021-09-14 08:50:09 -04:00
g_label_msdosfs.c geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
g_label_msdosfs.h sys/geom: adoption of SPDX licensing ID tags. 2017-11-27 15:17:37 +00:00
g_label_ntfs.c geom_label: Add more validation for NTFS volume tasting 2021-10-18 09:07:58 -04:00
g_label_reiserfs.c g_label: Handle small sector sizes when tasting 2021-09-14 08:50:09 -04:00
g_label_ufs.c geom_label: Make glabel labels more trivial by separating the tasting 2020-07-26 00:44:59 +00:00