mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-15 19:08:07 +00:00
fix(core): memory corruption on emulator init
Found by AddressSanitizer.
This commit is contained in:
parent
48554804df
commit
87aab69644
@ -38,7 +38,7 @@ void systimer_init(void) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&drv, 0, sizeof(systimer_driver_t));
|
memset(drv, 0, sizeof(systimer_driver_t));
|
||||||
drv->initialized = true;
|
drv->initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user