|
|
|
|
|
by masklinn
1276 days ago
|
|
> Interesting view that memory leaks aren't correctness problems. The view of rust is rather that they’re not safety problems. Whether they’re correctness problems is more complicated: in general they are, but there are lots of cases where they’re not, like short-running processes (once the process terminated it’s memory is reclaimed so freeing it is unnecessary overhead), or FFI (you’re moving memory out of your purview, you can’t know whether it’ll be disposed of anymore). |
|
Considing whether memory leaks are a security problem brings us to the traditional CIA definition of security - the A (availability) is at risk from memory leaks.