|
|
|
|
|
by dathinab
1983 days ago
|
|
I think C# has something similar and Java has all kind of extensions which do dynamic code generation and similar. This is not exactly the same attack surface but one which is similar bad (depending on usage of rust unsafe and Java features it can be anything from less worse to way worse). EDIT: I didn't list Java calling C/C++ because I think? it's not very common in Java libraries (through it's in JVM). |
|
C# has a lot about that, but whatever code you going to generate is CIL code. Runs within the same VM with strong safety guarantees.
> but one which is similar bad
Not anywhere close. Rust is unsafe all over these crates, both standard library and third-party ones. That’s not just theoretical stuff, it has quite a history, see e.g. https://medium.com/@shnatsel/how-rusts-standard-library-was-...