GithubHelp home page GithubHelp logo

estools / esfuzz Goto Github PK

View Code? Open in Web Editor NEW
54.0 54.0 13.0 1.23 MB

fuzzer for generative testing of ECMAScript parsers

License: BSD 3-Clause "New" or "Revised" License

JavaScript 0.23% CoffeeScript 99.77%
ast ecmascript estree javascript

esfuzz's People

Contributors

ikarienator avatar michaelficarra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esfuzz's Issues

ES6 fuzzing

Now that ES6 is standardized, it would be awesome to be able to test tools by fuzzing ES6 code.

rethink module interface

It should allow us to use the same program for standard and nonstandard parsers. Also, it should expose program generation. Should we also expose a round-tripping helper?

encapsulate tree depth and ancestor tracking using a monad

I don't know why it didn't hit me earlier that this is the job for a monad. This should be pretty simple, remove tons of duplication for nodes that don't care about the above properties, and possibly make our generators more reusable/composable.

Minimum depth option for generate

I appears to me that the fuzzer is biased towards rather small ast's.

Sometimes its nice to assure that the size is somehow "growing" (might be useful in quick check or quick check clones).

As such I propose adding a min_depth option

Generate a testcase

Hello,

How can I generate a test case using esfuzz so I can feed to the JS Parser?

Thanks in advance

RegExp CharacterClass generation bug

These invalid RegExps were generated:

/([+-=_-M:2])+/
/[g--}]/
/([]|[+]|[z--o])/
/[W;?--gdH]+?/
/[p--y]/
/[$-$|-+?]/
/[$d--e]/
/[*x/A--T]/
/[P--C]/
/[E-w\\\\-?u]+?/
/[&-E--&{]/
/[7-Ww-&]/
/[+-:|-TeI>]/
/[(R7`h--`|]/
/[o--gu]*?/
/([dY--c])/
/([=-eX-?Yi])/
/[uT\\\\--rl]/

Why?

add ancestor tracking

This will allow us to implement BreakStatement / ContinueStatement / ReturnStatement / LabeledStatement.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.