1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 21:38:26 +00:00
trezor-firmware/core/embed
matejcik 9244522721 fix(core): remove shutdown()
In a very weird situation, our declaration of `shutdown()` shadows a
function `shutdown(int, int)` from sys/socket, which _just happens_ to
be called by libxcb when closing the sdl window. This calls
`main_clean_exit` which calls into micropython and causes at best an
uncaught NLR and at worst an outright segfault because by that time the
micropython environment doesn't exist anymore.

I didn't think this sort of thing would be possible but here we are??

Fixed by removing `__shutdown()` and replacing `shutdown` with
`trezor_shutdown`
2023-03-24 13:24:46 +01:00
..
boardloader refactor(core): improve flexibility of build, allow different touch panel driver, allow STM32F429 2023-03-02 15:56:33 +01:00
bootloader fix(core/bootloader): fix retries when reading from USB 2023-03-22 15:09:39 +01:00
bootloader_ci feat(core/rust): bootloader implementation in rust 2023-03-09 16:14:36 +01:00
extmod fix(core/ui): Model T style update 2023-03-23 20:16:22 +01:00
firmware Merge branch 'release/23.03' 2023-03-20 13:02:35 +01:00
prodtest refactor(core): improve flexibility of build, allow different touch panel driver, allow STM32F429 2023-03-02 15:56:33 +01:00
reflash refactor(core): improve flexibility of build, allow different touch panel driver, allow STM32F429 2023-03-02 15:56:33 +01:00
rust fix(core): remove shutdown() 2023-03-24 13:24:46 +01:00
segger style(core): systemview editorconfig reformat 2021-01-26 20:53:38 +01:00
trezorhal fix(core): remove shutdown() 2023-03-24 13:24:46 +01:00
unix fix(core): remove shutdown() 2023-03-24 13:24:46 +01:00
vendorheader feat(core): icon and images using new format 2022-09-29 21:50:10 +02:00