OSDN Git Service

HFP: Fix out of bound access in phone number processing
authorHansong Zhang <hsz@google.com>
Wed, 27 Jun 2018 21:21:40 +0000 (14:21 -0700)
committerHansong Zhang <hsz@google.com>
Mon, 9 Jul 2018 21:42:25 +0000 (14:42 -0700)
commit5c0888d42d9aa29dbecd77d3443fa066cdb4e13d
treefb8e245ec34836c6cd1b3a7d9ddd7b2b0721683c
parent525e7031abe6a55446fcfe0a643d691b39da0926
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
btif/src/btif_hf.cc