Memory corruption occurs in Modem due to improper validation of array index when malformed APDU is sent from card.