commit | 435f8ca9a58e9bff5e703fa52ea1519617b6749c | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <[email protected]> | Wed May 07 17:33:22 2025 -0700 |
committer | CQ Bot Account <[email protected]> | Wed May 07 17:33:22 2025 -0700 |
tree | f9731a2453f6280dc346928be0d2c0bba0b8de36 | |
parent | 68343a011dd40d60773aeeb4eb2555d7f9ce6e4f [diff] |
Revert "pw_tokenizer: Never silently detokenize collisions in Python" This reverts commit 8bbf38974855143e72c88b5ac43f2c65f04caabd. Reason for revert: Need to handle intentionally corrupt decodes in snapshot (dropped arguments); likely in decode_optionally_tokenized Bug: b/416030128 Original change's description: > pw_tokenizer: Never silently detokenize collisions in Python > > To avoid misrepresenting messages, nested messages should only be > decoded if they are unambiguous -- only one successful way to decode > them. > > The Python nested detokenization code was accidentally checking > .matches() (the list of possible matches) instead of .ok(). This > evaluated true for any positive number of matches, which could silently > result in an ambiguous decode. This commit updates nested Base64 > decoding to only decode unambiguous matches. > > Bug: b/416030128 > Change-Id: I24a7bc166484564908377a92a9d3fbd02f35c0d4 > Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/289452 > Reviewed-by: Armando Montanez <[email protected]> > Docs-Not-Needed: Wyatt Hepler <[email protected]> > Lint: Lint 🤖 <[email protected]> > Commit-Queue: Wyatt Hepler <[email protected]> > Pigweed-Auto-Submit: Wyatt Hepler <[email protected]> [email protected],[email protected],[email protected],[email protected] No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: b/416030128 Change-Id: I6b182845306806d0f24f023b46210c541bdbf558 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/289632 Lint: Lint 🤖 <[email protected]> Reviewed-by: Wyatt Hepler <[email protected]> Commit-Queue: Wyatt Hepler <[email protected]> Pigweed-Auto-Submit: Wyatt Hepler <[email protected]> Reviewed-by: Armando Montanez <[email protected]>
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/.