TLS used to prevent and detect buffer overflow attacks