commit | 342a6fe56dc30e8a9a992b13ca31c3bfe954e93a | [log] [tgz] |
---|---|---|
author | Ben Lawson <benlawson@google.com> | Mon Apr 27 22:56:10 2020 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Mon Apr 27 22:56:10 2020 +0000 |
tree | 8a26d336562abe3e508510c5e25080ae5b4fdcfb | |
parent | 6657dc253c7458d3a187f2c06fafd68428954320 [diff] |
[bt][l2cap] Check size of command reject payload Check size of command reject payload before parsing. Create InvalidCIDPayload struct for CommandRejectPayload payload. Bug: 50625 Test: in bt-host-unittests L2CAP_CommandHandlerTest.OutboundDisconReqRej L2CAP_CommandHandlerTest.OutboundDisconReqRejNotEnoughBytes L2CAP_CommandHandlerTest.OutboundDisconReqRejInvalidCIDNotEnoughBytes Change-Id: I12a5e78174ea31abc2794e1c8f8f0a86bf23bd6d Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/383404 Reviewed-by: Xo Wang <xow@google.com> Testability-Review: Xo Wang <xow@google.com> Commit-Queue: Ben Lawson <benlawson@google.com>
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.
See fuchsia.dev.