roll: pigweed pw_allocator: Avoid read of invalid requested size

Prior to this CL, block types which included the `BlockWithLayout`
mix-in would read the previous requested size in `DoResize`. That method
would be called as part of `Alignable::DoAllocAligned` before a
requested size had been set.

This CL also resets the padding of a detailed block to 0 on free. This
ensures the padding can never exceed the block size on allocation.

Original-Bug: 446769988
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/326312
Original-Revision: b00699103392091fa54e4b6619faa6e2200e2e6c

Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: 8257af2f61c7cf..b0069910339209
Roll-Count: 1
Roller-URL: https://cr-buildbucket.appspot.com/build/8702427457689305985
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I7cf853c29dd096f024838d881bb2e29f672d2fad
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/326833
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
1 file changed
tree: 57e1b17936c8aa4b130e569feb3113381f88d3f5
  1. .github/
  2. .vscode/
  3. apps/
  4. device/
  5. modules/
  6. system/
  7. targets/
  8. tools/
  9. web_app/
  10. .bazelignore
  11. .bazelrc
  12. .bazelversion
  13. .black.toml
  14. .buildifier.json
  15. .clang-format
  16. .clang-tidy
  17. .clangd.shared
  18. .gitignore
  19. .pw_console.yaml
  20. .pylintrc
  21. AUTHORS
  22. BUILD.bazel
  23. CONTRIBUTING.md
  24. LICENSE
  25. MODULE.bazel
  26. MODULE.bazel.lock
  27. mypy.ini
  28. OWNERS
  29. pigweed.json
  30. pw
  31. README.md
  32. REPO.bazel
  33. workflows.json
README.md

Sense

git clone https://pigweed.googlesource.com/pigweed/showcase/sense

Welcome to Pigweed Sense, a tour of key Pigweed components experienced through an imagined air quality product.

Please visit Sense: An interactive tour through Pigweed to get started.