OSDN Git Service

HFP: Fix out of bound access in phone number processing
authorHansong Zhang <hsz@google.com>
Wed, 27 Jun 2018 21:26:40 +0000 (14:26 -0700)
committerHansong Zhang <hsz@google.com>
Wed, 11 Jul 2018 17:36:58 +0000 (17:36 +0000)
commit820b4327b1359fb1b389e07fc0f8c5e1304a7bfa
tree8fcede71f4ebbb4e41236bf87a91e7e25d5bd9f0
parent28af3285c7c6f1093f3a8652b9e2dd9dc61885b4
HFP: Fix out of bound access in phone number processing

* Write at most sizeof(dialnum) chars into dialnum array in ClccResponse
  method
* Write at most sizeof(ag_res.str) - 5 chars into ag_res.str array in
  PhoneStateChange method

Bug: 79431031
Bug: 79266386
Test: make call with super long phone numbers
Change-Id: I98e7687ac4055800aa46626c6b1c866e52e474df
Merged-In: I98e7687ac4055800aa46626c6b1c866e52e474df
btif/src/btif_hf.cc