Skip to content

Commit

Permalink
Add a file from a previous fuzzer crash
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Mar 19, 2024
1 parent 5fe40d3 commit 89d65d1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ src/node-types.json -diff
src/parser.c -diff

# These test files are from the fuzzer
test/**/timeout-* binary
test/**/crash-* binary
test/**timeout-* binary
test/**crash-* binary
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ make_timeout_fn := '''timeout () { perl -e 'alarm shift; exec @ARGV' "$@"; }'''
# Files that should parse with errors but not crash
errors_expected := '''
test/timeout-1aa6bf37e914715f4aa49e6cf693f7abf81aaf8e
test/crash-4b0422bb457cd6b39d1f8549f6739830254718a0z-assertion
# FIXME: xfail files, these should parse correctly
repositories/just/examples/kitchen-sink.just
Expand Down Expand Up @@ -156,7 +157,7 @@ test-parse-highlight: _clone-repo-just
just_path = Path(r"{{ just_path }}")

repo_files = sp.check_output(
["git", "ls-files", "*.just", "*justfile", "*timeout", "*crash"],
["git", "ls-files", "*.just", "*justfile", "*timeout*", "*crash*"],
encoding="utf8", shell=shell
)
just_repo_files = sp.check_output(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:
��a'''
bar:= '''b
c'���}�����a'''
bar:= '''b
c
'''
bazi: :
i� ##

0 comments on commit 89d65d1

Please sign in to comment.