[M] Change in osmo-ccid-firmware[master]: ccid: properly emit wait time ext messages
Attention is currently required from: Hoernchen. laforge has posted comments on this change by Hoernchen. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306?usp=email ) Change subject: ccid: properly emit wait time ext messages ...................................................................... Patch Set 2: Code-Review-1 (4 comments) File ccid_common/ccid_slot_fsm.c: https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306/comment/f38a6c35_b23... : PS2, Line 229: resp = ccid_gen_data_block(cs, ss->seq, CCID_CMD_STATUS_TIME_EXT, 1, NULL, 0); can we be sure that we can allocate sufficient waitign time extension messages? what a about a card that DoSs us with an infinite sequence of rapid 0x60 messages? IMHO it would be safer to decrement the wtime_ext counter only individually for each message we sent to the host, and in case of allocation failures (resp == NULL?) simply keep the count at non-zero until the next turn. File ccid_common/iso7816_fsm.h: https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306/comment/b977e403_b26... : PS2, Line 25: ISO7816_E_RX_SINGLE, /*!< single-byte data received on UART */ this cosmetic re-formatting or code does not belong to the patch. I guess you're not using 'git add -p' before committing? File ccid_common/iso7816_fsm.c: https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306/comment/b9d69422_6d1... : PS2, Line 227: { ISO7816_E_TX_ERR_IND, "TX_ERR_IND" }, same as above https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306/comment/8d291570_56f... : PS2, Line 555: S(ISO7816_E_POWER_UP_IND), and more cosmetic changes -- To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ccid-firmware Gerrit-Branch: master Gerrit-Change-Id: Ib69483d453a0e5ebb1bc1885a8f78790a0f10d70 Gerrit-Change-Number: 42306 Gerrit-PatchSet: 2 Gerrit-Owner: Hoernchen <ewild@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Attention: Hoernchen <ewild@sysmocom.de> Gerrit-Comment-Date: Tue, 10 Mar 2026 17:33:13 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
participants (1)
-
laforge