mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +00:00
storage: add compile-time assert for sizeof(Storage) validation
This commit is contained in:
parent
8372504238
commit
c08ff09f0f
@ -39,6 +39,7 @@
|
||||
#include "protect.h"
|
||||
#include "layout2.h"
|
||||
|
||||
_Static_assert(sizeof(Storage) <= FLASH_STORAGE_LEN, "Storage struct is too large for TREZOR flash");
|
||||
Storage storage;
|
||||
|
||||
uint8_t storage_uuid[12];
|
||||
|
Loading…
Reference in New Issue
Block a user