pgpool2.git / summary / log / commit / refs
commit 9094008ea177b2ec486f790d55b2dff5b94a72b5
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Wed Sep 28 00:55:59 2011 +0000
Fix buffer overrun problem when pcp password is longer than 32.
pcp_child.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pcp_child.c b/pcp_child.c
index 621cbf93f..26a8023df 100644
--- a/pcp_child.c
+++ b/pcp_child.c
@@ -1206,7 +1206,7 @@ user_authenticate(char *buf, char *passwd_file, char *salt, int salt_len)
char packet_password[MAX_USER_PASSWD_LEN+1];
char encrypt_buf[(MD5_PASSWD_LEN+1)*2];
char file_username[MAX_USER_PASSWD_LEN+1];
- char file_password[MD5_PASSWD_LEN+1];
+ char file_password[MAX_USER_PASSWD_LEN+1];
char *index = NULL;
static char line[MAX_FILE_LINE_LEN+1];
int i, len;
[parent: 8be354ae1b08]