commit | 94f7910976e8f64dbe0a2453b20fe0ea8d836d26 | [log] [tgz] |
---|---|---|
author | Ewout van Bekkum <ewout@google.com> | Fri Nov 12 14:46:08 2021 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Nov 13 02:06:53 2021 +0000 |
tree | ce11971ef0d268a3f97dfcc5a0adb1de802dd0b4 | |
parent | c2a4cfcafb87b825109b81f611fe4c51ae5ef176 [diff] |
pw_trace_tokenized: Fixes ubsan caught bugs Adjusts TraceQueue::TryPushBack to validate that the data_size actually fits in the fixed data_size buffer. Copies a size_t out of a packed struct in order to safely read it instead of relying on unaligned access being permitted. Bug: 542 Change-Id: I2c8a8e0a99625dfe139de4b8bfd912019b436fa0 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/68591 Commit-Queue: Ewout van Bekkum <ewout@google.com> Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com> Reviewed-by: Ted Pudlik <tpudlik@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/