[SBI] Crash occurs when ENUM in the MAP (#2103)

This commit is contained in:
Sukchan Lee 2023-03-01 17:50:25 +09:00
parent ce668c556c
commit 969c116e77
1097 changed files with 266728 additions and 42047 deletions

View file

@ -6,7 +6,7 @@
char* OpenAPI_max_integrity_protected_data_rate_ToString(OpenAPI_max_integrity_protected_data_rate_e max_integrity_protected_data_rate)
{
const char *max_integrity_protected_data_rateArray[] = { "NULL", "_64_KBPS", "MAX_UE_RATE" };
const char *max_integrity_protected_data_rateArray[] = { "NULL", "64_KBPS", "MAX_UE_RATE" };
size_t sizeofArray = sizeof(max_integrity_protected_data_rateArray) / sizeof(max_integrity_protected_data_rateArray[0]);
if (max_integrity_protected_data_rate < sizeofArray)
return (char *)max_integrity_protected_data_rateArray[max_integrity_protected_data_rate];
@ -17,7 +17,7 @@ char* OpenAPI_max_integrity_protected_data_rate_ToString(OpenAPI_max_integrity_p
OpenAPI_max_integrity_protected_data_rate_e OpenAPI_max_integrity_protected_data_rate_FromString(char* max_integrity_protected_data_rate)
{
int stringToReturn = 0;
const char *max_integrity_protected_data_rateArray[] = { "NULL", "_64_KBPS", "MAX_UE_RATE" };
const char *max_integrity_protected_data_rateArray[] = { "NULL", "64_KBPS", "MAX_UE_RATE" };
size_t sizeofArray = sizeof(max_integrity_protected_data_rateArray) / sizeof(max_integrity_protected_data_rateArray[0]);
while (stringToReturn < sizeofArray) {
if (strcmp(max_integrity_protected_data_rate, max_integrity_protected_data_rateArray[stringToReturn]) == 0) {