Skip to content
Commit 01c4d597 authored by Emil Gydesen's avatar Emil Gydesen Committed by Carles Cufí
Browse files

Bluetooth: Host: Avoid memcpy'ing bt_addr_t to same pointer



From le_ext_adv_param_set we will occasionally attempt
to call bt_addr_copy where the `addr` and &adv->random_addr.a
are the same pointer. Doing a memcpy where source and destination
is the same pointer is undefined behavior and should not be
done.

Signed-off-by: default avatarEmil Gydesen <emil.gydesen@nordicsemi.no>
parent 7d3def32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment