Signed-off-by: Jeesun Kim <iamjs.kim@samsung.com>
Change-Id: I5cdf32284d126b2e8835f5b0dafdd888895e4730
}
if (EM_SAFE_STRLEN(username) > 0 && EM_SAFE_STRLEN(password) > 0) {
- strcpy(user, username);
- strcpy(pwd, password);
+ EM_SAFE_STRNCPY(user, username, NETMAXUSER- EM_SAFE_STRLEN(user) -1);
+ EM_SAFE_STRNCPY(pwd, password, MAILTMPLEN - EM_SAFE_STRLEN(pwd) -1);
} else
EM_DEBUG_EXCEPTION("User Information is NULL || EM_SAFE_STRLEN is 0 ");
emcore_get_content_string(root_element, result_string, input_result_buffer_legnth, &exit_flag);
char *replaced_string = reg_replace_new(result_string, "[ \t\r\n\v\f]+", " ");
- EM_SAFE_STRCPY(output_result_buffer, replaced_string);
+ EM_SAFE_STRNCPY(output_result_buffer, replaced_string, input_result_buffer_legnth - EM_SAFE_STRLEN(output_result_buffer) -1);
EM_SAFE_FREE(replaced_string);
em_trim_left(output_result_buffer);