commit | 65a39d12d1ae5acb009f32704bcdd4156ddc0e66 | [log] [tgz] |
---|---|---|
author | Aaron Green <aarongreen@google.com> | Sat Feb 03 00:27:21 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Feb 03 00:27:21 2024 +0000 |
tree | fdc46d47503ca7db562e77b7966c9762af4ef2a0 | |
parent | a05ea168f47e6af11e37df31e48d0ebb5caff19c [diff] |
pw_bytes: Check for integer overflow This CL updates `AlignUp` and `AlignDown` to check for integer overflows. Since this introduces a dependency on pw_assert, the build targets for pw_bytes/alignment.h have been separated from the rest of pw_bytes. Change-Id: Ib5381a9aa79f8db8ce596b2e7cb2ea1520c52047 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/187655 Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Aaron Green <aarongreen@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/.