@[email protected] to [email protected]English • 10 hours agoFeds: Critical Software Must Drop C/C++ by 2026 or Face Riskthenewstack.iomessage-square17fedilinkarrow-up151arrow-down15cross-posted to: [email protected]
arrow-up146arrow-down1external-linkFeds: Critical Software Must Drop C/C++ by 2026 or Face Riskthenewstack.io@[email protected] to [email protected]English • 10 hours agomessage-square17fedilinkcross-posted to: [email protected]
minus-square@[email protected]OPlinkfedilink15•edit-24 hours agoUsing smart pointers doesn’t eliminate the memory safety issue, it merely addresses one aspect of it. Even with smart pointers, nothing is preventing you from passing references and using them after they’re freed.
minus-square@[email protected]linkfedilink0•3 hours agoTo be fair, it’s entirely possible to make the same and very similar mistakes in Rust, too.
Using smart pointers doesn’t eliminate the memory safety issue, it merely addresses one aspect of it. Even with smart pointers, nothing is preventing you from passing references and using them after they’re freed.
To be fair, it’s entirely possible to make the same and very similar mistakes in Rust, too.