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