commit | 793fb44f0e5a0eb29762936c3111f12edacc1448 | [log] [tgz] |
---|---|---|
author | Ewout van Bekkum <ewout@google.com> | Fri Nov 05 11:16:53 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 05 19:00:49 2021 +0000 |
tree | fca624ebdc7ad217f303e7a498170d0f7d2f6248 | |
parent | ea987f73c5b26bc578daf859e0a59f827eb354bf [diff] |
pw_bytes/byte_builder: do not memcpy empty spans Avoid using memcpy for empty spans as these may have nullptr base pointers. Bug: 521 Change-Id: I5ada65f6ed41532e55f98b67be8146278045cd6e Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/67380 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/