1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-28 09:08:07 +00:00
trezor-firmware/core/embed/unix
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
..
touch fix(core): remove shutdown() 2023-03-24 13:24:46 +01:00
background_1.h core: embed background images into the emulator binary 2019-05-04 22:33:48 +02:00
background_1.jpg MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
background_R.h feat(core): implement basic R emulator 2022-05-06 11:44:52 +02:00
background_R.jpg feat(core): implement basic R emulator 2022-05-06 11:44:52 +02:00
background_raspi.h core: embed background images into the emulator binary 2019-05-04 22:33:48 +02:00
background_raspi.jpg MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
background_T.h core: embed background images into the emulator binary 2019-05-04 22:33:48 +02:00
background_T.jpg MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
board-unix.h feat(core): change display type for model R 2022-11-24 11:37:52 +01:00
button.h refactor(core): decouple T1 button handling from touch 2021-09-23 12:30:13 +02:00
common.c fix(core): remove shutdown() 2023-03-24 13:24:46 +01:00
common.h fix(core): remove shutdown() 2023-03-24 13:24:46 +01:00
display-unix.c fix(core): create separate display buffer for gamma correction 2023-03-23 17:35:09 +01:00
display-unix.h feat(core): change display type for model R 2022-11-24 11:37:52 +01:00
dma2d.c feat(core/rust): use dma2d to improve rendering performance, implement text over image and icon over icon functions 2022-09-29 21:50:10 +02:00
dma2d.h feat(core/rust): use dma2d to improve rendering performance, implement text over image and icon over icon functions 2022-09-29 21:50:10 +02:00
flash.c feat(core): implement basic R emulator 2022-05-06 11:44:52 +02:00
flash.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
jpg_to_h.py feat(core): implement basic R emulator 2022-05-06 11:44:52 +02:00
main_main.c refactor(crypto,core): make zkp_context_init() return status 2021-11-18 19:05:40 +01:00
main.c refactor: Move flash_init to emulator main. 2022-05-03 19:00:04 +02:00
mpconfigport.h fix(core): fix emulator build on Apple Silicon 2021-11-08 11:00:04 +01:00
profile.c feat(core): show red error header when USB data not connected 2022-08-25 16:42:29 +02:00
profile.h feat(core): show red error header when USB data not connected 2022-08-25 16:42:29 +02:00
random_delays.c refactor(core): move wait_random and rdi into separate file 2021-05-21 13:42:53 +02:00
random_delays.h refactor(core): move wait_random and rdi into separate file 2021-05-21 13:42:53 +02:00
rgb_led.h feat(core): add RGB LED driver for Model R 2022-06-22 09:28:31 +02:00
rng.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
rng.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
sbu.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
sbu.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
sdcard.c docs: fix typos in comments 2021-06-30 15:41:55 +02:00
sdcard.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
secbool.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usb_hid-defs.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usb_vcp-defs.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usb_webusb-defs.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usb.c refactor(core): improve flexibility of build, allow different touch panel driver, allow STM32F429 2023-03-02 15:56:33 +01:00
usb.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
version.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00