commit | c4acd7e6392a2702b470a6dac1d4c364844a4677 | [log] [tgz] |
---|---|---|
author | Dennis Kormalev <denk@google.com> | Wed Jun 08 18:20:30 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 08 19:28:47 2022 +0000 |
tree | 51ae6f03ce3f55d8c9804b70c18b0b3fcb38fc8d | |
parent | 446c169b0fbf39f0ae3dd1880cae2ec04e81d836 [diff] |
pw_rpc: Guard packets vector usage in FakeServer with Output mutex FakeServer::SendResponse uses FakeServer::ProcessPacket under the hood. Usually SendResponse is used when client side is also active. ProcessPacket accesses packets_ vector from Output, but doesn't guard its usage with the mutex. This CL adds a guard around the packets_usage from the ProcessPacket() method. Change-Id: Id726e028b18b8d50906e14c7b1fddfc1ed086037 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/97562 Pigweed-Auto-Submit: Dennis Kormalev <denk@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Reviewed-by: Wyatt Hepler <hepler@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/