Commit Graph
20516 Commits
Author SHA1 Message Date
Behdad Esfahbod 47b0ce552d [fuzzing] Guard raster/vector create_or_fail results
The raster and vector fuzzers called create_or_fail() and then
immediately dereferenced the returned pointers. Under CIFuzz's
allocation-failure coverage, that turns a valid NULL return into a
harness crash instead of treating it as an out-of-memory case.

Return early after cleaning up when draw or paint context creation
fails. This keeps the fuzzers aligned with the create_or_fail()
contract and avoids null-deref crashes unrelated to library logic.

Tested:
- meson compile -C build hb-raster-fuzzer hb-vector-fuzzer
- build/test/fuzzing/hb-vector-fuzzer test/fuzzing/fonts/TwemojiMozilla.subset.ttf
- build/test/fuzzing/hb-raster-fuzzer test/fuzzing/fonts/TwemojiMozilla.subset.ttf

Assisted-by: OpenAI Codex
2026-03-10 10:04:25 -03:00
Behdad Esfahbod 3ec2c7c329 [check] Simplify list
https://github.com/harfbuzz/harfbuzz/pull/5812#pullrequestreview-3921617643
2026-03-10 09:56:47 -03:00
Behdad Esfahbod cfd9a52c9d [svg] Gate SVG table processing under HB_NO_SVG (#5814)
Skip the SVG table accelerator and do not define the public
SVG color APIs when HB_NO_SVG is set. Guard internal
callers so SVG-table-dependent code compiles out cleanly,
and add HB_NO_SVG to the HB_TINY profile.

Tested: meson setup build-nosvg -Dc_args=-DHB_NO_SVG -Dcpp_args=-DHB_NO_SVG
Tested: meson compile -C build-nosvg hb-shape hb-info hb-vector main
Tested: meson compile -C build-nosvg (libharfbuzz/libharfbuzz-raster/libharfbuzz-vector linked; full tree stopped on unrelated missing chafa.h in util/hb-raster.cc)
Tested: nm -gU build-nosvg/src/libharfbuzz.0.dylib | grep -E "hb_ot_color_.*svg" (no matches)

Assisted-by: OpenAI Codex
2026-03-10 00:19:39 -06:00
Behdad Esfahbod d007d025a3 Merge pull request #5807 from harfbuzz/AGENTS.md
Add repository AGENTS guide
2026-03-09 23:29:04 -06:00
Behdad Esfahbod a87b8897e0 [AGENTS.md] Refine commit message guidance
Root cause: the guide required descriptive commit messages,
but it did not encode the preferred body width or the
preference to skip irrelevant testing boilerplate.

Update AGENTS.md to recommend wrapping commit message
bodies to about 70 columns and to mention testing only
when it was actually performed or otherwise relevant.

Assisted-by: OpenAI Codex
2026-03-10 02:16:36 -03:00
Behdad Esfahbod 248dd7e56e [AGENTS.md] Tighten repository guide
Root cause: the previous guide had accumulated useful project-specific guidance, but too much detail made the core constraints and workflow harder to scan quickly.

Rewrite AGENTS.md into a shorter structure that keeps the important HarfBuzz-specific rules around API/ABI stability, build and test expectations, feature-guarded builds, generator-driven updates, commit conventions, and project mindset, while removing lower-signal detail. Add back a short Wisdom section to preserve project tone without re-expanding the file.

Testing: not run (documentation-only change).
Assisted-by: OpenAI Codex
2026-03-10 02:15:06 -03:00
Behdad Esfahbod 41768116ec [AGENTS.md] Encode commit message conventions
Root cause: the repository guide captured broad commit hygiene expectations, but it did not explicitly encode the preferred subject prefix style, issue-linking trailers, or the required Assisted-by trailer.

Update AGENTS.md to require consistent bracketed subsystem prefixes, recommend Fixes: trailers when relevant, and require Assisted-by on commits written through the agent.

Testing: not run (documentation-only change).
Assisted-by: OpenAI Codex
2026-03-10 02:10:50 -03:00
Behdad Esfahbod dc0f366567 AGENTS.md: add guidance from recent commit history
Root cause: the repository guide captured explicit project rules, but it did not yet encode several stable engineering patterns visible across the last 1000 commits.

Update AGENTS.md to reflect recurring HarfBuzz practices: incremental helper extraction over large rewrites, pairing bug fixes with reproducible regressions or fuzz coverage, keeping docs and build/install wiring aligned with feature changes, treating generated data as generator-driven work, and validating simplifications carefully because semantic regressions are often only caught later.

Testing: not run (documentation-only change).
2026-03-10 02:07:12 -03:00
Behdad Esfahbod 238001d1bc AGENTS.md: reorganize repository guide
Root cause: the guide had accumulated useful project-specific guidance, but the structure made it harder to scan and apply consistently.

Reorganize AGENTS.md around core rules, build and verification flow, repository layout, change-specific guidance, and working mindset while preserving the existing instructions and recent review-driven additions.

Testing: not run (documentation-only change).
2026-03-10 02:01:57 -03:00
Behdad Esfahbod 577f7097ff AGENTS.md: address PR review feedback
Root cause: the initial repository guide omitted several project-specific expectations raised during review and listed non-installed utilities in the util map.

Update AGENTS.md to reflect HarfBuzz conventions around API/ABI stability, new API documentation with XSince: REPLACEME, warning-free rebuild expectations, OOM and error-handling guidance, root-cause-first debugging, and descriptive commit messages. Also limit the utility list to installed command-line tools.

Testing: not run (documentation-only change).
2026-03-10 01:59:17 -03:00
Behdad EsfahbodandClaude Opus 4.6 39c1b71f84 [AGENTS.md] Expand repo map, debug flags, options, and change-specific advice
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-10 01:53:57 -03:00
Behdad Esfahbod e9b7083a06 [AGENTS.md]
Add gemini wisdom.
2026-03-10 01:53:57 -03:00
Behdad Esfahbod 0b3b9fdbdc Add repository AGENTS guide
Codex intitial writeup.
2026-03-10 01:53:57 -03:00
Behdad Esfahbod 6e8b2a6998 Merge pull request #5813 from harfbuzz/set-fuzzer-remove
Set fuzzer remove
2026-03-09 22:53:36 -06:00
Behdad Esfahbod 87333c135c Mark fuzzing helper scripts executable 2026-03-10 01:50:13 -03:00
Behdad Esfahbod 83a5760e09 Add fuzz seed decoder 2026-03-10 01:45:55 -03:00
Behdad Esfahbod bf283f8fde Drop obsolete set-fuzzer corpus 2026-03-10 01:42:32 -03:00
Behdad Esfahbod e73a690d9e Remove hb-set-fuzzer 2026-03-10 01:41:46 -03:00
Behdad Esfahbod a4ce5caeea Add handwriting fuzzer text trailers 2026-03-10 01:38:06 -03:00
Behdad Esfahbod 6add360dbf Fix check libraries (#5812)
* Centralize check library lists

* Hide internal raster helper symbols
2026-03-09 22:37:07 -06:00
Behdad Esfahbod 405eceb79a Merge pull request #5809 from harfbuzz/fuzz-image
Add raster and vector fuzzers
2026-03-09 22:34:29 -06:00
Behdad Esfahbod 9058176117 Harden raster PNG error handling 2026-03-10 01:20:37 -03:00
Behdad Esfahbod eaf002624d Factor custom object destroy helpers 2026-03-10 01:04:11 -03:00
Behdad Esfahbod 79646aae36 Fix raster and vector destroy ordering 2026-03-10 01:00:31 -03:00
Behdad Esfahbod a940e06ff4 Use push_or_fail in raster SVG paths 2026-03-09 23:09:41 -03:00
Behdad Esfahbod 2329724c1e Fix hb_vector push failure checks 2026-03-09 23:08:02 -03:00
Behdad Esfahbod acdf518d42 [fuzzing] Add noto handwriting color fonts
From https://github.com/googlefonts/color-fonts
2026-03-09 23:00:03 -03:00
Behdad Esfahbod 9ffd6815b0 Harden raster paint stack allocation failures 2026-03-09 22:46:38 -03:00
Behdad Esfahbod 31b23afc9c Fix raster paint surface cache leak 2026-03-09 22:33:04 -03:00
Behdad Esfahbod b18092024a Add raster and vector fuzzers 2026-03-09 22:13:03 -03:00
Behdad Esfahbod bec407b6ab util: prefer PNG as the default image format 2026-03-09 21:35:30 -03:00
Behdad Esfahbod a4ddc4c35c util: composite hb-raster PNG output against background 2026-03-09 21:27:08 -03:00
Behdad Esfahbod 7623e5524c util: add terminal output modes to hb-raster 2026-03-09 23:37:36 +02:00
Behdad Esfahbod 2609adb6f9 util: share terminal image output helpers 2026-03-09 23:37:36 +02:00
Behdad Esfahbod 24a703b51f util: show default in output format help 2026-03-09 23:37:36 +02:00
Behdad Esfahbod e36b7a3f5d util: add PNG output support to hb-raster 2026-03-09 23:37:36 +02:00
Behdad Esfahbod dfc64f02c0 raster: add PNG serialization API for images 2026-03-09 23:37:36 +02:00
Quang LuongCodex (AI assistant)Gemini (AI assistant)
7b7d54e33b [arabic] Improve stch measurement pass (#5808)
Use checked arithmetic when calculating the number of extra glyphs
needed during stch processing. Includes a new hb_unsigned_add_overflows
helper in hb-algs.hh.

Co-authored-by: Codex (AI assistant)
Co-authored-by: Gemini (AI assistant)
2026-03-09 15:02:38 -06:00
Behdad Esfahbod fc6eaa5400 [svg] Use std::isfinite
Fixes https://github.com/harfbuzz/harfbuzz/issues/5806
2026-03-09 15:11:23 -03:00
Khaled Hosny 37efe6cc09 [meson] Show PNG is summary and re-order sections a bit 2026-03-09 18:18:52 +02:00
Behdad Esfahbod 6f198a9e39 [raster] Change image reconstruction from box to bilinear
https://github.com/harfbuzz/harfbuzz/pull/5798#issuecomment-4023007382
2026-03-09 18:18:52 +02:00
Behdad Esfahbod 9c6f4c201f raster: add PNG paint_image support via libpng 2026-03-09 18:18:52 +02:00
dependabot[bot] 544864caa7 Bump github/codeql-action from 4.32.4 to 4.32.6
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.32.4 to 4.32.6.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/89a39a4e59826350b863aa6b6252a07ad50cf83e...0d579ffd059c29b07949a3cce3983f0780820c98)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.32.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 13:26:15 +02:00
Khaled Hosny 0faf041ef7 [man] Add hb-raster, and hb-vector to “See also” section 2026-03-08 00:03:57 +02:00
Khaled Hosny f5190a73aa [usermanual] Document hb-info, hb-raster, and hb-vector 2026-03-08 00:03:57 +02:00
Khaled Hosny 5408e599f6 [usermanual] Move code blocks inside list item 2026-03-08 00:03:57 +02:00
Khaled Hosny c27ef57976 [usermanual] Improve program listings
Content inside <programlisting> tags is sensitive to white space, and the
extra indentation appear in the output.
2026-03-08 00:03:57 +02:00
Khaled Hosny 0e35bd4896 [docs] Improve code blocks
GTK-Doc does not seem to support mark down code blocks markup. Use the
other way, and mark the language as plain text because code coloring
looks a bit ugly.
2026-03-08 00:03:57 +02:00
Khaled Hosny c4eafe606c [docs] Move hb-raster and hb-vector to their own section 2026-03-08 00:03:57 +02:00
Khaled Hosny 1ccd8e5395 [util] Install hb-raster 2026-03-07 22:19:06 +02:00