8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 14:03:02 +01:00

Fixed CORE-2928: Buffer overflow in gsec

This commit is contained in:
alexpeshkoff 2010-03-17 09:55:06 +00:00
parent f55ef587df
commit bbc3b37116

View File

@ -374,7 +374,7 @@ SSHORT SECURITY_exec_line(ISC_STATUS* isc_status,
*(io_user_data->sys_user_name) = '\0';
strcpy(io_user_data->user_name, U.USER_NAME);
strcpy(io_user_data->group_name, U.GROUP_NAME);
strcpy(io_user_data->password, U.PASSWD);
io_user_data->password[0] = 0;
strcpy(io_user_data->first_name, U.FIRST_NAME);
strcpy(io_user_data->middle_name, U.MIDDLE_NAME);
strcpy(io_user_data->last_name, U.LAST_NAME);
@ -404,7 +404,7 @@ SSHORT SECURITY_exec_line(ISC_STATUS* isc_status,
*(io_user_data->sys_user_name) = '\0';
strcpy(io_user_data->user_name, U.USER_NAME);
strcpy(io_user_data->group_name, U.GROUP_NAME);
strcpy(io_user_data->password, U.PASSWD);
io_user_data->password[0] = 0;
strcpy(io_user_data->first_name, U.FIRST_NAME);
strcpy(io_user_data->middle_name, U.MIDDLE_NAME);
strcpy(io_user_data->last_name, U.LAST_NAME);