You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The version comparison does not meet expectations in handle_not_valid_after.
Your environment
Environment-independent.
Steps to reproduce
Enable the CAL_TEST_KEY and TRUSTED_NAME_TEST_KEY. (You can simply add two lines in the Makefile. CAL_TEST_KEY=1 TRUSTED_NAME_TEST_KEY=1)
In UT test_trusted_name_v2_expired,change the arg not_valid_after to (1,1,2).
1.1.2 < 1.14.0 (current version )
Expected behaviour
ut test_trusted_name_v2_expired running normally
Actual behaviour
ut running failed
Logs
Please paste any logs here that demonstrate the issue, if they exist
Proposed solution
for (; i< (int) ARRAYLEN(app_version); ++i) {
if (data->value[i] >app_version[i])
break;
if (data->value[i] <app_version[i]) {
PRINTF("Expired trusted name : %u.%u.%u < %u.%u.%u\n",
data->value[0],
data->value[1],
data->value[2],
app_version[0],
app_version[1],
app_version[2]);
return false;
}
}
The text was updated successfully, but these errors were encountered:
Description
The version comparison does not meet expectations in
handle_not_valid_after
.Your environment
Environment-independent.
Steps to reproduce
Enable the CAL_TEST_KEY and TRUSTED_NAME_TEST_KEY. (You can simply add two lines in the Makefile. CAL_TEST_KEY=1 TRUSTED_NAME_TEST_KEY=1)
In UT test_trusted_name_v2_expired,change the arg not_valid_after to (1,1,2).
1.1.2 < 1.14.0 (current version )
Expected behaviour
ut test_trusted_name_v2_expired running normally
Actual behaviour
ut running failed
Logs
Please paste any logs here that demonstrate the issue, if they exist
Proposed solution
The text was updated successfully, but these errors were encountered: