mirror-ghostty/pkg/oniguruma
Mitchell Hashimoto 3dde6e2559
terminal: bound link regex search work with Oniguruma retry limits
Fixes #11177

Use per-search Oniguruma match params (retry_limit_in_search) in
StringMap-backed link detection to avoid pathological backtracking hangs
on very long lines.

The units are ticks in the internal loop so its kind of opaque but
this seems to still match some very long URLs. The test case in question
was a 169K character line (which is now rejected).
2026-03-04 21:02:55 -08:00
..
build.zig zig-15: build binary builds 2025-10-03 07:10:41 -07:00
build.zig.zon build: mark most dependencies as lazy 2025-03-14 13:32:19 -07:00
c.zig pkg/oni: yeet usingnamespace 2024-08-16 15:32:21 -07:00
errors.zig pkg/oni: yeet usingnamespace 2024-08-16 15:32:21 -07:00
init.zig Zig 0.15: zig fmt 2025-10-03 07:10:43 -07:00
main.zig terminal: bound link regex search work with Oniguruma retry limits 2026-03-04 21:02:55 -08:00
match_param.zig terminal: bound link regex search work with Oniguruma retry limits 2026-03-04 21:02:55 -08:00
regex.zig terminal: bound link regex search work with Oniguruma retry limits 2026-03-04 21:02:55 -08:00
region.zig pkg/oni: yeet usingnamespace 2024-08-16 15:32:21 -07:00
testing.zig pkg/oniguruma: init regex object 2023-11-29 15:29:43 -08:00
types.zig pkg/oni: yeet usingnamespace 2024-08-16 15:32:21 -07:00