Skip to content

Catching lexer/parser bugs with fuzzed input #773

Closed

Description

@HalidOdat

The fuzzer would generate tests with fuzzed input and we would check what is the expected behaviour

Activity

  1. added
    A-Enhancement
    C-Parser
    E-Medium
    on Oct 2, 2020
  2. changed the title [-]Catching lexer/parser bug with fuzzed input[/-] [+]Catching lexer/parser bugs with fuzzed input[/+] on Oct 2, 2020
  3. added
    C-Tests
    on Oct 2, 2020
  4. alexanderkjall commented on Oct 3, 2020

    @alexanderkjall

    I uploaded the fuzzer I used here: https://github.com/alexanderkjall/boa-hongg feel free to use it however you want.

    I used honggfuzz, as it's a bit better than cargo-fuzz, and have run it overnight so far.

    I In addition to the bugs I have reported with it, there is also a SIGSEGV due to running out of stackspace when parsing a very nested expression, but I felt that might be out of scope?

  5. neeldug commented on Oct 6, 2020

    @neeldug
    Contributor

    It would be nice to have some automation of fuzzing going on, however, as fuzzers last indefinitely, unsure of whether using CI is applicable... I also found AFL which seems simple enough to use and can use an input to converge on bugs quicker, I’m unsure of whether honggfuzz has the same capabilities, but it might be useful to use AFL if not!

    Also, as for automation, Google has OSS-Fuzz which allows for automated fuzzing and has a GH integration, might be worth looking into!

  6. linked a pull request that will close this issueAdd an AST visitor/walker #1954on Mar 18, 2022
  7. moved this to In Progress in Boa pre-v1on Aug 22, 2022
  8. jedel1043 commented on Nov 8, 2022

    @jedel1043
    Member

    Closed by #2400

  9. Repository owner moved this from In Progress to Done in Boa pre-v1on Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-EnhancementC-ParserC-TestsE-Medium

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions