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

Skip to content
Commit a6cb363a authored by George Burgess IV's avatar George Burgess IV
Browse files

bt: don't conditionally dereference an undefined pointer

If `lcids` is empty here, the `p_ccb->p_lcb` access on line 898 uses an
uninitialized pointer. We ideally shouldn't be doing that.

Caught by the static analyzer:
system/bt/stack/l2cap/l2c_api.cc:889:21: warning: Dereference of
undefined pointer value [clang-analyzer-core.NullDereference]

Tag: #security
Bug: 159786353
Test: TreeHugger
Change-Id: Ifbcdb3f2f297b2bf3ff5324b6fb4039fecade43f
parent e9c9be48
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