[pathbuilder] Enforce immutable SkPath APIs globally

Path-editing methods in Skia's SkPath are being deprecated.  This is the
final step in migrating Chromium to SkPathBuilder.

Turn on SK_HIDE_PATH_EDIT_METHODS to enforce non-editing SkPath APIs.

Refactor remaining call sites (that were missed in previous cleanup CLs)
to use SkPathBuilder or named factories.

No functional changes.

Bug: 378688986
Change-Id: Ib088b78a7ac798fe83004252694d7c3a867531f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7101838
Reviewed-by: Mike Reed <[email protected]>
Reviewed-by: Ali Hijazi <[email protected]>
Reviewed-by: Dana Fried <[email protected]>
Reviewed-by: Toni Barzic <[email protected]>
Reviewed-by: Mitsuru Oshima <[email protected]>
Reviewed-by: Thomas Anderson <[email protected]>
Reviewed-by: Ted Choc <[email protected]>
Commit-Queue: Florin Malita <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1539408}
NOKEYCHECK=True
GitOrigin-RevId: 63267f2f424009cfa9a3f5e05877b9c2a0647ede
4 files changed
tree: 816bfbc622289b7d167c8b05c0936298bf074a58
  1. fuzzer_support_ios/
  2. fuzzers/
  3. fuzzilli/
  4. proto/
  5. renderer_fuzzing/
  6. research/
  7. tests/
  8. AFL_integration.md
  9. archive_corpus.py
  10. BUILD.gn
  11. confirm_fuzztest_init.cc
  12. confirm_fuzztests.py
  13. dictionary_generator.py
  14. efficient_fuzzing.md
  15. fuzzer_test.gni
  16. fuzzing_browsertests.md
  17. fuzztest_init_helper.cc
  18. fuzztest_init_helper.h
  19. fuzztest_wrapper.cpp
  20. gen_fuzzer_config.py
  21. gen_fuzzer_owners.py
  22. getting_started.md
  23. getting_started_with_libfuzzer.md
  24. libfuzzer_exports.h
  25. libFuzzer_integration.md
  26. libprotobuf-mutator.md
  27. OWNERS
  28. README.md
  29. reference.md
  30. reproducing.md
  31. unittest_main.cc
  32. zip_sources.py
README.md

Fuzz testing in Chromium

go/chrome-fuzzing

Fuzzing is a testing technique that feeds auto-generated inputs to a piece of target code in an attempt to crash the code. It's one of the most effective methods we have for finding security and stability issues (see go/fuzzing-success). You can learn more about the benefits of fuzzing at go/why-fuzz.

This documentation covers the in-process guided fuzzing approach employed by different fuzzing engines, such as libFuzzer or [AFL]. To learn more about out-of-process fuzzers, please refer to the Blackbox fuzzing page in the ClusterFuzz documentation.

Getting Started

In Chromium, you can easily create and submit fuzz targets. The targets are automatically discovered by buildbots, built with different fuzzing engines, then uploaded to the distributed ClusterFuzz fuzzing system to run at scale.

You should fuzz any code which absorbs inputs from untrusted sources, such as the web. If the code parses, decodes, or otherwise manipulates that input, it's an especially good idea to fuzz it.

Create your first fuzz target and submit it by stepping through our Getting Started Guide.

Advanced Topics

Further Reading

Trophies

Other Links