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

Commit 7881ca36 authored by Zhihai Xu's avatar Zhihai Xu Committed by Android (Google) Code Review
Browse files

Merge "memory corruption on bluetooth stack."

parents 921f0d3d 02360867
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1145,6 +1145,10 @@ void btm_ble_read_remote_name_cmpl(BOOLEAN status, BD_ADDR bda, UINT16 length, c
    BD_NAME bd_name;

    memset(bd_name, 0, (BD_NAME_LEN + 1));
    if (length > BD_NAME_LEN)
    {
        length = BD_NAME_LEN;
    }
    memcpy((UINT8*)bd_name, p_name, length);

    if ((!status) || (length==0))