mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 16:26:39 +01:00
Smbios: add struct layout check
This commit is contained in:
@@ -78,7 +78,7 @@ typedef struct FFSmbiosHeader
|
||||
FFSmbiosType Type;
|
||||
uint8_t Length;
|
||||
uint16_t Handle;
|
||||
} FFSmbiosHeader;
|
||||
} __attribute__((__packed__)) FFSmbiosHeader;
|
||||
static_assert(sizeof(FFSmbiosHeader) == 4, "FFSmbiosHeader should be 4 bytes");
|
||||
|
||||
typedef struct FFRawSmbiosData
|
||||
|
||||
Reference in New Issue
Block a user