Parent: 6d43ca442932b6b25cbc1f168f95e6a484905c79
Author: Yun-Hao Chung <howardchung@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-05-14 00:13:20
Tree: 2257eee401980340f2cdfaf5ee1e1e25eae472b7
monitor: Fix possible crash of rfcomm packet When RFCOMM_TEST_EA returns false, btmon assumes packet data has at least 5 bytes long. If that assumption fails, btmon could crash when trying to read the next byte. This patch fix it by checking the remaining size before reading the last byte. Reviewed-by: apusaka@chromium.org
Diffstat
| M | monitor/rfcomm.c | | | 3 | +++ |
1 files changed, 3 insertions(+), 0 deletions(-)