Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ee649346 authored by Chriz Chow's avatar Chriz Chow Committed by Marcel Holtmann
Browse files

Bluetooth: Prevent buffer overflow for large advertisement data



There are some controllers sending out advertising data with illegal
length value which is longer than HCI_MAX_AD_LENGTH, causing the
buffer last_adv_data overflows. To avoid these controllers from
overflowing the buffer, we do not process the advertisement data
if its length is incorrect.

Signed-off-by: default avatarChriz Chow <chriz.chow@aminocom.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 2cc6d079
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment