1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-28 09:08:07 +00:00
trezor-firmware/core/embed/rust
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
..
.cargo feat(core): Add Rust Protobuf codec 2021-06-08 09:55:19 +02:00
fuzz build(deps): bump regex from 1.5.4 to 1.5.6 in /core/embed/rust/fuzz 2022-06-07 12:20:02 +02:00
src fix(core): remove shutdown() 2023-03-24 13:24:46 +01:00
build.rs feat(core/rust): expose touch processing functions to rust 2023-03-09 16:14:36 +01:00
Cargo.lock refactor(core): switch to Rust implementation of QR-Code-generator 2023-03-09 23:36:36 +01:00
Cargo.toml fix(core/rust/ui): add cargo flag for Component::bounds() support 2023-03-23 20:16:22 +01:00
librust_qstr.h feat(core/ui): redesigned receive flow 2023-03-09 23:36:36 +01:00
librust.h feat(core/rust/ui): return Layout results as singleton objects 2022-04-04 13:32:07 +02:00
micropython.h feat(core): Add Instant and Duration types 2022-01-28 09:58:49 +01:00
qstr.h feat(core): Add Rust bindings to MicroPython and trezorhal 2021-05-05 16:00:21 +02:00
rust_ui.h feat(core/rust): bootloader implementation in rust 2023-03-09 16:14:36 +01:00
rustfmt.toml chore(core/rust): fixes and formatting 2021-10-07 15:01:55 +02:00
trezorhal.h feat(core/rust): expose touch processing functions to rust 2023-03-09 16:14:36 +01:00