diff options
author | marcel <marcel@FreeBSD.org> | 2008-02-28 22:30:41 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-02-28 22:30:41 +0000 |
commit | aa08e756e25b6a8d5d4eaaf6def143fdb69f758a (patch) | |
tree | 6f6e295a4fe6a03d9e080d77f59e03181bd1500a /lib/libc/stdio/xprintf_int.c | |
parent | c1cd98f4218d53ac138627299e2b59d0dfc43c07 (diff) | |
download | FreeBSD-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/xprintf_int.c')
0 files changed, 0 insertions, 0 deletions