2 ms·
It could prevent a part of the problem, depending on how Avast chooses to parse things. Remote execution would be harder to achieve. But, parsing anything tha
by shakna 9y ago
It could prevent a part of the problem, depending on how Avast chooses to parse things.
Remote execution would be harder to achieve.
But, parsing anything that you end up evaluating includes a whole class of bugs that Rust can't reason about.
A common (terrible) example on Windows is to serialize a data structure, and then pass it to another program after forking to a new process. If that serialized data includes particular sequences, it can cause the forking process to do other things.
Rust can help you ensure memory safety, and type safety. But it doesn't prevent stupidity.