minus-squarearendjr@programming.devOPtoProgramming@programming.dev•Feds: Critical Software Must Drop C/C++ by 2026 or Face Risklinkfedilinkarrow-up31·edit-24 days 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. linkfedilink
arendjr@programming.dev to Programming@programming.devEnglish · 4 days agoFeds: Critical Software Must Drop C/C++ by 2026 or Face Riskplus-squarethenewstack.ioexternal-linkmessage-square27fedilinkarrow-up182arrow-down19
arrow-up173arrow-down1external-linkFeds: Critical Software Must Drop C/C++ by 2026 or Face Riskplus-squarethenewstack.ioarendjr@programming.dev to Programming@programming.devEnglish · 4 days agomessage-square27fedilink
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.