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>
Tue, 22 Jan 2019 22:25:54 +0000 (14:25 -0800)
commit07ff96727c2b5ccc2ec812c5d5c2fc2aafa7658b
tree0c323ef603d6a68401ed3cd956a6bd0ae44ea079
parent8ef9dc6f3f334b444bbfffae18185a36d6a1f5b5
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
Merged-In: I9bbcd58460a02394010f74a18e9ebdbcd546d43d
(cherry picked from commit fcb1994de1f6ee34b8dc6804a2b32e20bf138073)
stack/l2cap/l2c_fcr.cc