OSDN Git Service

Fix the LE CoC SL4A Test failure due to length check
authorStanley Tng <stng@google.com>
Tue, 11 Dec 2018 22:45:13 +0000 (14:45 -0800)
committerStanley Tng <stng@google.com>
Wed, 12 Dec 2018 15:53:05 +0000 (07:53 -0800)
commitfcb1994de1f6ee34b8dc6804a2b32e20bf138073
treefdc5d3aa3301417aa26b384e1398be407410f4e2
parentd7b5621d5927ed4485791f21aa29a3b033556c38
Fix the LE CoC SL4A Test failure due to length check

Fix a regression from the previous CL that checks the buffer length
before doing a memcpy. The previous check is too strict causing valid
sized buffers to be rejected. The length check is incorrect and off by the header size.

Bug: 117306992
Bug: 112321180
Test: Run the LE CoC SL4A Tests
Change-Id: I9bbcd58460a02394010f74a18e9ebdbcd546d43d
stack/l2cap/l2c_fcr.cc