What Are Temporal and Spatial Memory Safety?

The lovely folks working on security over at Google have recently been writing about "temporal (memory) safety" and "spatial (memory) safety" . When I first saw these terms it took me a minute to figure out what they meant, as searching for it online didn't yield immediate answers. So I figured it might be helpful to write it down for others to find: Spatial memory safety: describes violations…