Blame SOURCES/lshw-B.02.17-scan-fat-mem-bug.patch

c28c22
------------------------------------------------------------------------
c28c22
r2528 | lyonel | 2013-08-24 18:12:05 +0200 (lø., 24 aug. 2013) | 2 lines
c28c22
c28c22
fix #632: ensure that FAT superblock is at least 1 sector long
c28c22
c28c22
c28c22
Index: src/core/fat.cc
c28c22
===================================================================
c28c22
--- src/core/fat.cc	(revisjon 2527)
c28c22
+++ src/core/fat.cc	(revisjon 2528)
c28c22
@@ -81,6 +81,7 @@
c28c22
 			uint8_t dummy2[164];
c28c22
 			uint8_t pmagic[2];
c28c22
 		} __attribute__((__packed__)) fat32;
c28c22
+		char sector[512];	// to make sure the whole struct is at least 512 bytes long
c28c22
 	} __attribute__((__packed__)) type;
c28c22
 } __attribute__((__packed__));
c28c22
 
c28c22
c28c22
------------------------------------------------------------------------