Skip to content
This repository was archived by the owner on Jul 15, 2025. It is now read-only.

Check access rule before updating class byte#4

Open
ghost wants to merge 1 commit intoandroid-5.0.0_r3-scapifrom
unknown repository
Open

Check access rule before updating class byte#4
ghost wants to merge 1 commit intoandroid-5.0.0_r3-scapifrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jun 13, 2016

checkCommand() shall be called before class byte is updated with the
channel number. Otherwise, valid trasmit request can be filtered out
becaue of the channel number.

Say that the APDU filter "00 55 00 00" is available and the current
channel number is 1, for example. The APDU header is changed to "01 xx
xx xx" if the class byte is updated by Util.setChannelToClassByte(). In
this case, the transmit request is incorrectly rejected because of the
channel number if we do not apply this change.

checkCommand() shall be called before class byte is updated with the
channel number. Otherwise, valid trasmit request can be filtered out
becaue of the channel number.

Say that the APDU filter "00 55 00 00" is available and the current
channel number is 1, for example. The APDU header is changed to "01 xx
xx xx" if the class byte is updated by Util.setChannelToClassByte(). In
this case, the transmit request is incorrectly rejected because of the
channel number if we do not apply this change.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants