Skip to content

Comments

Fix bugs in spans found by fuzzing#130

Merged
untitaker merged 31 commits intomainfrom
bug127-take2
Nov 30, 2025
Merged

Fix bugs in spans found by fuzzing#130
untitaker merged 31 commits intomainfrom
bug127-take2

Conversation

@untitaker
Copy link
Owner

@untitaker untitaker commented Nov 30, 2025

Fix a bunch of issues with spans overlapping with other spans, being off-by-one
or pointing to the beginning of the string. Also relax some invariants in the
fuzzer that didn't turn out to be true.

Discovered with:

cd fuzz
FUZZ_SPAN_INVARIANTS=1 make -e afl

Then once a crash was found, do this:

FUZZ_SPAN_INVARIANTS=1 make -e afl-next

Fix #127

@untitaker untitaker merged commit e40ad7d into main Nov 30, 2025
8 checks passed
@untitaker untitaker deleted the bug127-take2 branch November 30, 2025 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Various span edgecases

1 participant