[build] Ensure hwasan allocator functions return error codes

As of 39ece7583a784976dea786d59e6564649b13d92d, c-style functions use
the hwasan implementations, but the default behavior for allocator
functions is to abort on invalid arguments (like an invalid alignment
passed to posix_memalign). But some 3p tests expect an error code from
invalid memalign arguments, so this also ensures the hwasan replacements
return error codes instead of abort.

Fixed: 125298
Change-Id: I3d2a601b6d01de4c4df14056e1c6771c7aaa6076
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/834096
Reviewed-by: Roland McGrath <mcgrathr@google.com>
Commit-Queue: Leonard Chan <leonardchan@google.com>
1 file changed
tree: 8f4f95330af22ffdef0a33e3efb4bd6318995798
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. products/
  7. scripts/
  8. sdk/
  9. src/
  10. third_party/
  11. tools/
  12. zircon/
  13. .clang-format
  14. .clang-tidy
  15. .editorconfig
  16. .git-blame-ignore-revs
  17. .gitattributes
  18. .gitignore
  19. .gitmodules
  20. .gn
  21. .ignore
  22. .style.yapf
  23. analysis_options.yaml
  24. AUTHORS
  25. BUILD.gn
  26. CODE_OF_CONDUCT.md
  27. CONTRIBUTING.md
  28. fuchsia.code-workspace
  29. LICENSE
  30. OWNERS
  31. PATENTS
  32. pyrightconfig.json
  33. README.md
  34. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.