commit | 3c2f2ca62114b840520a92f6bf25332725e09d73 | [log] [tgz] |
---|---|---|
author | Marie Janssen 💖 <jamuraa@google.com> | Fri May 01 00:32:19 2020 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Fri May 01 00:32:19 2020 +0000 |
tree | 6f584a4e334570f7a633f9b4ad02e0243878b42e | |
parent | c5fab9c1afe815ba9d415b0b647537ae460ff956 [diff] |
[bt][sdp] Fix buffer size check, max response size Calculate the size of the response buffers that are being parsed in ServiceSearchResponse, ServiceAttributeResponse, and ServiceSearchAttributeResponse correctly before parsing the results. Fix a problem where continuing to parse continuation packets for ServiceAttributeResponse and ServiceSearchAttributeResponse could have an unbounded memory allocation. Fixed: 50628 Fixed: 50627 Test: bt-host-unittests, updated SDP parsing tests. Multiply: bt-host-unittests:30 Change-Id: Iaa36d69620f2374de3549217b43fc43a8404e0e6 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/384686 Reviewed-by: Ani Ramakrishnan <aniramakri@google.com> Testability-Review: Ani Ramakrishnan <aniramakri@google.com> Commit-Queue: Marie Janssen 💖 <jamuraa@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.