OSDN Git Service

DO NOT MERGE HFP: Fix out of bound access in phone number processing
authorJack He <siyuanh@google.com>
Wed, 27 Jun 2018 00:53:24 +0000 (17:53 -0700)
committerHansong Zhang <hsz@google.com>
Thu, 28 Jun 2018 00:10:17 +0000 (17:10 -0700)
commit82371c1204cc0b48941ec1d41c516c4b40093879
tree2470f2032c2c9cc764198e18693ea89ba5ff6a5b
parentae0bf659a40d55c6d241bb3bfe5b79ab9b9b6f6a
DO NOT MERGE 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.c