OSDN Git Service

A security fix to check buffer length in l2c_lcc_proc_pdu
authorStanley Tng <stng@google.com>
Thu, 3 Jan 2019 00:48:32 +0000 (16:48 -0800)
committerStanley Tng <stng@google.com>
Thu, 3 Jan 2019 00:51:40 +0000 (16:51 -0800)
commit1f1d8b97d80d25023c4c7b04d2aa18d367f4158d
tree89b9a36f76a08e9e62c50ec9ddc44d9e6864d6cb
parent26d855122017e776a751dfd71157d445ea40fbca
A security fix to check buffer length in l2c_lcc_proc_pdu

Add check to make sure that data buffer is big enough to read the 2
bytes for length.

Bug: 120665616
Test: Run the SL4A Test for LE CoC, BleCoCTest
Change-Id: I30b7a8af11d3a5f974cb39e06b0e3463bebc8e9a
stack/l2cap/l2c_fcr.cc