Date: Monday June 28, 1999 @ 4:40
Author: bjh
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv5697
Modified Files:
crypt.c
Log Message:
Stop core dump using crypt() with standard DES. When PHP3_MAX_SALT_LEN = 2
adding the null terminator to the salt exceeds allocated space causing
stack corruption.
PHP_FUNCTION(crypt)
{
- char salt[PHP3_MAX_SALT_LEN];
+ char salt[PHP3_MAX_SALT_LEN+1];
pval *arg1, *arg2;
salt[0]='\0';