pw_bluetooth_proxy: Fix crash on rfcomm write due to reusing buffers IsComplete is data dependent for dynamic length emboss structs, so this check was failing if a write buffer was reused with length fields populated to indicate longer length than bframe payload was set for. Fix by checking against calculated rfcomm frame size instead and add test case that is fixed by this change. Bug: 390435352 Change-Id: Ib22ff1a8ce9ca2a44b4c8b82b3f79e0f829d11c9 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/260260 Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Pigweed-Auto-Submit: Austin Foxley <afoxley@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Reviewed-by: Ben Lawson <benlawson@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Docs-Not-Needed: Austin Foxley <afoxley@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.