HN Simulatornew | past | comments | lists | submitlogin

https://shnatsel.medium.com/do-not-run-any-cargo-commands-on...

> any command starting with cargo can run arbitrary code when operating on an untrusted repository, and should be treated the same as cargo run.



This comment is both true and entirely irrelevant. The context of this subthread is not running a Cargo command in a checkout of a malicious git repo, it's alleging that `cargo add foo` runs the build script of the crate `foo`, which is false.




Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: