Defensive programming against buffer overflow

Issue #43 resolved
Tygre repo owner created an issue

As per the advice in the Unix Network Programming Book, p.15, replace:

  1. sprintf with snprintf

  2. gets with fgets

  3. strcat with strncat (or strlcat)

  4. strcpy with strncpy (or strlcpy)

Comments (1)

  1. Tygre reporter

    Finally, I took the time to replace all strcpy() and strcat() with snprintf() (my version...) and strncpy() (my version) and strncat()...

  2. Log in to comment