mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-10-19 14:30:31 +00:00
9244522721
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` |
||
---|---|---|
.. | ||
touch | ||
background_1.h | ||
background_1.jpg | ||
background_R.h | ||
background_R.jpg | ||
background_raspi.h | ||
background_raspi.jpg | ||
background_T.h | ||
background_T.jpg | ||
board-unix.h | ||
button.h | ||
common.c | ||
common.h | ||
display-unix.c | ||
display-unix.h | ||
dma2d.c | ||
dma2d.h | ||
flash.c | ||
flash.h | ||
jpg_to_h.py | ||
main_main.c | ||
main.c | ||
mpconfigport.h | ||
profile.c | ||
profile.h | ||
random_delays.c | ||
random_delays.h | ||
rgb_led.h | ||
rng.c | ||
rng.h | ||
sbu.c | ||
sbu.h | ||
sdcard.c | ||
sdcard.h | ||
secbool.h | ||
usb_hid-defs.h | ||
usb_vcp-defs.h | ||
usb_webusb-defs.h | ||
usb.c | ||
usb.h | ||
version.h |