When a simple
int foo(int x) {
return x+1;
}
leads to undefined behavior (aka the standard says the program can delete your hard drive) if x is too big, that's not a language that guarantees memory safety.