commit | fdfb02418fccd2ad7af90eaed12e27b02f61cda9 | [log] [tgz] |
---|---|---|
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | Mon Jul 04 14:36:56 2022 +0700 |
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | Mon Jul 11 16:30:47 2022 +0700 |
tree | acccef879c9050b42184cbf19423bb05016aba4c | |
parent | e4503232eb49397894a93e11d6c3e37d5e9fc43b [diff] |
host/cardem: fix integer overflow in process_do_rx_da() osmo_apdu_segment_in() may return a negative number on receipt of "unknown APDU case", and that would crash simtrace2-cardem-pcsc: msgb(0x55d2cf7aa8a0): Not enough tailroom msgb_put (allocated 920, head at 0, len 7, tailroom 1017 < want tailroom 65534) backtrace() returned 19 addresses Whenever osmo_apdu_segment_in() fails to recognize an APDU, the communication is broken, because we don't know if we should continue transmitting or receiving. Only a successful return value by would allow us to know this. Do not crash, exit() gracefully. Change-Id: I9e97b955a28ec886a429d744f9316e7e71be4481 Related: OS#5600
This is the repository for the next-generation SIMtrace devices, providing abilities to trace the communication between (U)SIM card and phone, remote (U)SIM card forward, (U)SIM man-in-the-middle, and more.
NOTE: Nothing in this repository applies to the SIMtrace v1.x hardware or its associated firmware. SIMtrace v1.x is based on a different CPU / microcontroller architecture and uses a completely different software stack and host software.
This repository contains several directory
The host software includes