mirror of
https://github.com/caddyserver/caddy.git
synced 2026-11-17 21:41:58 +00:00
The formatter checked every token starting with "<<" against the heredoc
marker regexp. In a libFuzzer build each string comparison copies both
strings, and the regexp compares the remaining input on every step, so a
long marker-shaped token made the fuzz-format target time out.
A byte loop accepts the same markers in linear time. The lexer uses it
too, so there is one definition of a valid marker.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| caddyfile | ||
| httpcaddyfile | ||
| warning | ||
| configadapters.go | ||
| httploader.go | ||
| httploader_test.go | ||
| load.go | ||