Conversation

They make strscpy out to be a safer alternative to all the other string functions, but yet strscpy(s, n) is unsafe when even when strcpy would not be unsafe if the destination is smaller than n. It uses that assumption to assume it can clobber unused bytes after the terminator.
1
1
Show replies