How a single typo led to RCE in Firefox
26 points by yashgarg
26 points by yashgarg
Don't think that's a typo, it's an actual bug due to a mistake in the & | logic selection. Happens all the time especially when the dev is in his 8th hour and should've been caught by testing.
The bitflags crate using method names rather than syntax shorthand in Rust would make this kind of mistake very difficult to make, though.
Does it stop you using symbols in Rust?
Because C++ natively has named alternative operators
https://cppreference.com/w/cpp/language/operator_alternative.html
edit: I also feel like I had a similar discussion before with Rust users being fully convinced that C++ can't have named operators, because Rust is better and doesn't have any (Not saying this applies here, I'm curious about this crate and the safety features).
And I can't find this in my comments. Maybe it was not on this site.