Skip to content

Commit

Permalink
fix[test]: fix failure in grammar fuzzing (#3892)
Browse files Browse the repository at this point in the history
fixes a fuzz failure, which is that the strategy can put utf-8
characters in strings (which we reject at compile-time). the fix here is
to just create programs with ascii. this bug was apparently introduced
in 176e7f7 due to the new alphabet
parameter passed to the grammar strategy.
  • Loading branch information
charles-cooper authored Mar 26, 2024
1 parent ea7f081 commit 6e9b2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/grammar/test_grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def fix_terminal(terminal: str) -> bool:
return terminal


ALLOWED_CHARS = st.characters(codec="utf-8", min_codepoint=1)
ALLOWED_CHARS = st.characters(codec="ascii", min_codepoint=1)


# With help from hyposmith
Expand Down

0 comments on commit 6e9b2c9

Please sign in to comment.