summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fprintf.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2008-02-28 22:30:41 +0000
committermarcel <marcel@FreeBSD.org>2008-02-28 22:30:41 +0000
commitaa08e756e25b6a8d5d4eaaf6def143fdb69f758a (patch)
tree6f6e295a4fe6a03d9e080d77f59e03181bd1500a /lib/libc/stdio/fprintf.c
parentc1cd98f4218d53ac138627299e2b59d0dfc43c07 (diff)
downloadFreeBSD-src-aa08e756e25b6a8d5d4eaaf6def143fdb69f758a.zip
FreeBSD-src-aa08e756e25b6a8d5d4eaaf6def143fdb69f758a.tar.gz
Better handle false positives. The MBR differs from the boot sector
only because there's a partition table where the boot sector has boot code. Boot sectors without boot code look like a MBR for all practical purposes. This change adds a check for the partition table and fails the probe when it's obvously invalid. The assumption being that the sector contains a boot sector and not a MBR. More checks are needed to distinguish a boot secto without boot code from a (empty) MBR.
Diffstat (limited to 'lib/libc/stdio/fprintf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud