Memory Safety V2
Memory Safety V2
Security Policies
Mathias Payer
https://www.youtube.com/watch?v=OPcV9uIY5i4
Zero-cost abstraction
http://theburningmonk.com/2015/05/
rust- memory- safety- without- gc/
Used to prevents
dangling pointers and
reduces memory leaks.
No implicit Conversion
between datatypes
Three types of
pointers:
Normal pointer
(unsafe)
Never-Null pointer
Fat Pointer
setjmp/longjump:
Non-structured
Recourse Leaks
Error-prone
Softbound significant
overhead:
It adds metadata to
pointers
Enforces bounds
checks on every
pointer dereference
Introduce extra
memory and CPU
access costs.