Code Monkey home page Code Monkey logo

sus's People

Contributors

antlilja avatar leecannon avatar llogick avatar superauguste avatar techatrix avatar travisstaloch avatar

Stargazers

 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

sus's Issues

More fuzzing modes

  • Fuzzing invalid syntax Zig code
  • Fuzzing valid syntax, invalid typing Zig code
  • Fuzzing valid syntax, valid typing Zig code

Support more message kinds

  • initialized
  • initialize
  • shutdown
  • exit
  • $/cancelRequest
  • textDocument/didOpen
  • textDocument/didChange
  • textDocument/didSave
  • textDocument/didClose
  • textDocument/willSaveWaitUntil
  • textDocument/semanticTokens/full
  • textDocument/inlayHint
  • textDocument/completion
  • textDocument/signatureHelp
  • textDocument/definition
  • textDocument/typeDefinition
  • textDocument/implementation
  • textDocument/declaration
  • textDocument/hover
  • textDocument/documentSymbol
  • textDocument/formatting
  • textDocument/rename
  • textDocument/references
  • textDocument/documentHighlight
  • textDocument/codeAction
  • workspace/didChangeConfiguration
  • textDocument/foldingRange
  • textDocument/selectionRange

proposal - support additional cli args

i would like it if the project were more configurable by supporting additional cli args. i think this could be done without introducing a bunch of complexity or dependencies.

motivation - i think we are likely to discover more bugs in zls/zig if this project is easily configurable. as an example, i found an adversarial input the other day - enum(u32) - after manually changing maxlen and 'cycles per gen' values to smaller numbers. this happened quickly after changing the parameters while the previous configuration ran for ~15 minutes without discovering any adversarial inputs.

i would be glad to implement this if you agree that its a good idea. i think it could be done fairly simply with a state-machine (state = mode) and an args iterator.

my idea for these args would be:

  • zls path - positional first arg - full path to the zls executable
  • mode - positional second arg - one of [markov, ...]
    • mode == markov
      • --training-dir - directory to be used for training the markov model. searched for .zig files recursively.
      • --maxlen - maximum length of each file generated by the markov model.
      • --cycles-per-gen - how many times to call fuzzer.fuzzFeatureRandom() before regenerating a new file
    • mode == ...
      • process other args specific to this mode

let me know if you think this is a good idea and/or have anything to add or change. no worries if its just too early for these type of changes. just wanted to share my thoughts and maybe get some feedback.

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.