From crypt (3) - Linux man page :
char *crypt(const char *key, const char *salt);
Return value : Returns a pointer to the encrypted password. On error, NULL returned.
Since the return value is unknown, if the key and salt values ββare not specified, this should be dynamically allocated memory, but valgrind does not agree.
source share