Prevent an invalid memory access