|author||Ben Lawson <firstname.lastname@example.org>||Mon Sep 16 18:25:04 2019 +0000|
|committer||CQ bot account: email@example.com <firstname.lastname@example.org>||Mon Sep 16 18:25:04 2019 +0000|
[bt][l2cap] Reland "Guard against peer opening multiple dynamic channels from the same endpoint ID" Original commit was 2b7d302a6b7d193804331fec210b33488d1c4b3d. The crash that this was reverted for is fixed in f9adee40aa38ccc5d025c55b36e9245ef631fc9b. Original change's description: > Add checks in BrEdrDynamicChannel::OnRxConnRsp and BrEdrDynamicChannelRegistry::OnRxConnReq > for responses/requests from a peer that reuse an already allocated dynamic channel ID. This would > violate the spec. > > Add method DynamicChannelRegistry::FindChannelByRemoteId for looking up > whether a peer CId is already in use. > > Renamed DynamicChannel::set_remote_cid to > DynamicChannel::SetRemoteChannelId, it now verifies that a remote channel Id is > unique before adding it. > > BUG: 694 > > Test: in bt-host-unittests > L2CAP_BrEdrDynamicChannelTest.InboundConnectionResponseReusingChannelIdCausesInboundChannelFailure > L2CAP_BrEdrDynamicChannelTest.PeerConnectionResponseReusingChannelIdCausesOutboundChannelFailure > L2CAP_BrEdrDynamicChannelTest.PeerPendingConnectionResponseReusingChannelIdCausesOutboundChannelFailure > > Change-Id: Ic58544b1f7d52b54fcd5d776b95a939c317747f1 Change-Id: I347ee6ba0a36ba0b3672158e3cb812f8b4364d76
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.