string TAUUID = TABin->getUUIDAsString(data.uuid);
string argvPort = TABin->getPort(TAUUID);
+ string TAName(TAUUID);
+ std::transform(TAName.begin(), TAName.end(), TAName.begin(), ::toupper);
if(!mContext->nConnSecChecker.clientHasAccessToTa(TAUUID)){
- LOGE(SIM_DAEMON, "Client has no permission for access TA: %s ", TAUUID.c_str());
+ LOGE(SIM_DAEMON, "Client has no permission for access TA: %s ", TAName.c_str());
return TEEC_ERROR_ACCESS_DENIED;
}
/* Check if any of system ta directories contains our ta */
for(int i = 0; i < N_SYS_TA_PATHS; ++i){
- strcpy(ta_full_path, system_ta_paths[i]);
- strcat(ta_full_path, ta_name);
+ snprintf(ta_full_path, MAX_PATH_LENGTH, "%s/%s", system_ta_paths[i], ta_name);
if(file_exists(ta_full_name)){
return true;