lshw/lshw-stack-corruption.patch
2013-10-17 16:46:08 +00:00

11 lines
299 B
Diff

--- src/core/fat.cc
+++ src/core/fat.cc
@@ -81,6 +81,7 @@
uint8_t dummy2[164];
uint8_t pmagic[2];
} __attribute__((__packed__)) fat32;
+ char sector[512]; // to make sure the whole struct is at least 512 bytes long
} __attribute__((__packed__)) type;
} __attribute__((__packed__));