Skip to content

Failures found using fuzz testing #380

Open
@c42f

Description

@c42f

Using the tools from #379 uncovers several bugs. For example

fuzz_test(try_parseall_failure, product_token_fuzz(cutdown_tokens, 2))
fuzz_test(try_hook_failure, product_token_fuzz(cutdown_tokens, 2))
fuzz_test(try_parseall_failure, random_token_fuzz(cutdown_tokens, 10, 10_000_000))

Some errors found with this:

Parser errors

Tree building errors

  • parseall(SyntaxNode, "using . ...", ignore_errors=true)
  • parseall(Expr, "\x04'\0", ignore_errors=true)
  • parseall(Expr, "@(var\"", ignore_errors=true)
  • parseall(Expr, "for\n\n<:", ignore_errors=true) (Fix bug parsing unary subtypes with newlines #393)
  • parseall(Expr, "x:y:<", ignore_errors=true)

Hook errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions