freebsd-dev/sbin/fsck_msdosfs
Xin LI b770b08061 Comment boot block checks and perform additional sanity checks:
The following checks are now being enforced:

 - bpbBytesPerSec: only accept 512, 1024, 2048 and 4096.
 - bpbSecPerClust: only accept 1, 2, 4, 8, 16, 32, 64 and 128.
 - bpbResSectors: require non-zero.
 - bpbFATs: require non-zero.
 - bpbSectors: require zero for FAT32.
 - bpbFATsmall: require zero for FAT32.
 - bpbHugeSectors: require non-zero for FAT32.

Bail out if the BPB contained values that do not meet these requirements.

We also require FATsecs * FATsecs to not overflow 32-bit unsigned
integer.

Check for backup boot block was removed because the checker does not take
corrective action, and msdosfs driver ignores it too.
2019-08-26 06:41:17 +00:00
..
boot.c Comment boot block checks and perform additional sanity checks: 2019-08-26 06:41:17 +00:00
check.c Don't bail out from the check if readboot() returns !FSFATAL. 2018-04-30 05:57:55 +00:00
dir.c Remove redundant check and wrong fix: fat.c checks already take care 2019-08-19 04:28:12 +00:00
dosfs.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ext.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
fat.c Use calloc(). 2019-08-19 05:24:42 +00:00
fsck_msdosfs.8 Mention the version of NetBSD the utility originated from. 2016-10-02 23:40:17 +00:00
main.c In ask(): override default option if any of alwaysyes/alwaysno/rdonly is 2019-06-15 07:23:06 +00:00
Makefile Revert Makefile@335696 that sneaked into the commit. 2018-06-27 06:50:24 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00