1
0
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:
Martin Milata 2024-10-22 21:21:57 +02:00
parent 48554804df
commit 87aab69644

View File

@ -38,7 +38,7 @@ void systimer_init(void) {
return;
}
memset(&drv, 0, sizeof(systimer_driver_t));
memset(drv, 0, sizeof(systimer_driver_t));
drv->initialized = true;
}