Defeating 'trusting trust' attacks: https://www.schneier.com/blog/archives/2006/01/countering_trus.html Ingenious and elegant.
miniblog.
Related Posts
Today I learnt about the NonNull<T> type in Rust: https://doc.rust-lang.org/nightly/core/ptr/struct.NonNull.html
It's a *mut T that is never null. Rust is trusting you even more than a normal *mut T, which is slightly daunting.
I'd love to see a package repository where libraries had permissions like Android apps.
It would simplify trusting obscure new libraries if I could see e.g. libfoo never accesses the network.
How do you prevent "trusting trust" attacks with malicious compilers?
You don't need a trusted production-grade compiler. It's sufficient to have a really limited trusted compiler or even an untrusted compiler provided the triggers don't overlap.