trussed-dev / apdu-dispatch

Apache License 2.0
2 stars 7 forks source link

Panic on Select command with an invalid Aid. #7

Closed sosthene-nitrokey closed 1 year ago

sosthene-nitrokey commented 2 years ago

Hi!

A bit of fuzzing this library found that a panic happens when apdu_dispatch receives a select command with an Aid in the data field that is incorrect. This is because Aid::new panics when the input data is invalid.