diff options
author | Sascha Schumann <sas@php.net> | 1999-08-17 18:21:04 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-08-17 18:21:04 +0000 |
commit | 71e3f6fde3979a2fd4c051ba878e5e3e5a8f21f5 (patch) | |
tree | e8ccff2d57e5caa6ed3e569407c921a37505aa0e /ext/standard/crypt.c | |
parent | 52d6ab608faa7e1e243a7c2fe9350c932368ceea (diff) | |
download | php-git-71e3f6fde3979a2fd4c051ba878e5e3e5a8f21f5.tar.gz |
merge in change:
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.
Diffstat (limited to 'ext/standard/crypt.c')
-rw-r--r-- | ext/standard/crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index 36eab9be96..1c0b301ca8 100644 --- a/ext/standard/crypt.c +++ b/ext/standard/crypt.c @@ -119,7 +119,7 @@ static void php3i_to64(char *s, long v, int n) { PHP_FUNCTION(crypt) { - char salt[PHP3_MAX_SALT_LEN]; + char salt[PHP3_MAX_SALT_LEN+1]; pval *arg1, *arg2; salt[0]='\0'; |