Conversation

FFS stop using C.
Quote Tweet
Kudos to Christian Reiter and Jochen Hoenicke for identifying and disclosing vulnerability in reference implementation of bech32 address handling. This affects many Bitcoin projects, ask your favourite devs for update! blog.trezor.io/details-about-
7
20
Replying to
You can! For instance if this was written in unsafe Rust I'd be complaining as well. But the lesson there is that a bech32 implementation doesn't need to be written in unsafe Rust; use safe Rust instead.
1
4
Replying to and
There are cases where you don't have a choice - I've written a lot of unsafe Rust myself. But bech32 implementations don't need to do anything low level, and there's no need to squeeze the last % of performance out (there might even be no difference in performance).
1
3
The system preventing use-after-free and other memory corruption bugs prevents issues like iterator invalidation or using a file after it's closed still present in a modern garbage collected languages. It also prevents data races between threads (not race conditions as a whole).