CCID_Tests: Ensure the response to "SELET MF" is two bytes (SW) long

we used to accept arbitrary length responses, which made us fail to
catch the bug described in OS#4684

Change-Id: I35721ce55b58a2f70ea30a0d1bd16d2ac58dfcab
Related: OS#4684
This commit is contained in:
Harald Welte 2020-07-30 22:09:55 +02:00
parent c6136cd4e4
commit c6fde3f751
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ private function f_TC_select_mf() runs on Slot_CT
f_ccid_power_on();
f_ccid_set_par(ts_ProtoDataT0(ISO7816_FI_512_5MHz, ISO7816_DI_32));
for (i := 0; i < 1000; i := i+1) {
f_ccid_xfr(c_UICC_SELECT_MF, ?);
f_ccid_xfr(c_UICC_SELECT_MF, '??'O);
}
}
testcase TC_select_mf() runs on Test_CT