buffer overflows

What does memory safety actually mean?

I'm confused about which memory problems count as memory safety issues. Do stack overflows, allocation failures, leaks and segmentation faults all fit? And why are memory bugs a…