Skip to content
Commit 50a3a6ec authored by Lyle Zhu's avatar Lyle Zhu Committed by Fabio Baltieri
Browse files

Bluetooth: SDP: Check if frame len is consistent with attr list count



The total attributes list bytes count is only used to check the tail
room of response buffer. And the remaining frame length is used to
copy data from receiving buffer.

It does not check whether the remaining frame length is consistent with
the total attributes list bytes count.

Add the checking to make sure the attributes list is complete. And it
is used to make sure the response buffer can be accessed safety.

Signed-off-by: default avatarLyle Zhu <lyle.zhu@nxp.com>
parent c65d394f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment