Skip to content

Commit

Permalink
fix(core): memory corruption on emulator init
Browse files Browse the repository at this point in the history
Found by AddressSanitizer.
  • Loading branch information
mmilata committed Oct 22, 2024
1 parent 4855480 commit 87aab69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/embed/trezorhal/unix/systimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 87aab69

Please sign in to comment.