Git Product home page Git Product logo

jitfuzz1's Introduction

Getting Started

Directory description

benchmark:  projects as seeds
logs:		log files
out:		builded class files
resources:	configuration files of seed projects
seeds:		seed files generated
src:		source code
tmp:		temporary files during experiment
util:		helper class(utils.Digit)

How to Run

Prerequisites

  1. JDK11

  2. AFLplusplus

    • Get by git clone https://github.com/AFLplusplus/AFLplusplus.git
  3. JDK source code

    • Get by git clone https://github.com/openjdk/jdk.git

Steps to build

  1. Build AFLplusplus
    • See https://github.com/AFLplusplus/AFLplusplus/blob/stable/docs/INSTALL.md
  2. Build JDK with AFLplusplus
    • Run
    CC=PATH/TO/AFLPLUSPLUS/afl-gcc-fast CXX=PATH/TO/AFLPLUSPLUS/afl-g++-fast bash configure --enable-debug --disable-warnings-as-errors
    AFL_GCC_ALLOWLIST=PATH/TO/AFL_GCC_ALLOWLIST make images
    # Please use the full path of AFL_GCC_ALLOWLIST.
    
  3. Build JITFuzz
    • You can import it into IntelliJ IDEA workspace
    • Build and run JITFuzz with JDK11

Steps to run

  1. Choose and build a seed project

  2. Write a seed_project.properties file and put it in ./resources; See ./resources/fastjson.properties as example.

  3. run experiment.Main with JDK11.

    Command line options:

    • -i: The index of this experiment, used to mark the log and seeds files. e.g., 0
    • -I: The total iterations of mutation. e.g., 1000
    • -p: The project that serves seed files ./resources/project.properties will be read. e.g., fastjson
    • -s: The path to store seeds generated. Not necessary, default value: ./seeds
    • -l: The path to store log files. Not necessary, default value: ./logs
    • -e: The mutator to be disabled: scalar|escape|simp|inline|wrap|trans; Not necessary, no one will be disabled in default.

jitfuzz1's People

Contributors

lochnagarr avatar

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.