Merge "Require FAT to occupy at least one sector." am: a4f74d335c am: 6447072324

Change-Id: I7eb4cdd418d987ef7a35975b429d33fcdccd074b
diff --git a/boot.c b/boot.c
index a3ba7ab..5f5fb24 100644
--- a/boot.c
+++ b/boot.c
@@ -250,7 +250,7 @@
 		boot->FATsecs = boot->bpbFATsmall;
 	}
 
-	if (boot->FATsecs > UINT32_MAX / boot->bpbFATs) {
+	if (boot->FATsecs < 1 || boot->FATsecs > UINT32_MAX / boot->bpbFATs) {
 		pfatal("Invalid FATs(%u) with FATsecs(%zu)",
 			boot->bpbFATs, (size_t)boot->FATsecs);
 		return FSFATAL;