3 ms·
> No pointers means no pointer errors. Use after free can be perfectly well expressed with C++ references, or invalidated iterators to standard library contain
by the_why_of_y 7y ago
> No pointers means no pointer errors.
Use after free can be perfectly well expressed with C++ references, or invalidated iterators to standard library containers.
> Integer overflows are equally possible in Rust and C++.
In C++, unsigned integer overflows can often be leveraged into out-of-bounds access; in safe Rust, they cannot.
- ncmncm 7y agoUse-after-free can be expressed in C++, but there is no temptation to do it.