Coder Social home page Coder Social logo

littledivy / dfuzz Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 2.09 MB

libFuzzer based JS/TS fuzzer.

Home Page: https://deno.land/x/fuzz

Makefile 0.11% TypeScript 0.45% C++ 94.76% CMake 2.09% C 2.02% Shell 0.05% Python 0.52%
deno typescript fuzzing libfuzzer

dfuzz's Introduction

dfuzz

Fuzzing JS/TS code with LLVM libFuzzer.

Installation

deno install -Afn --unstable dfuzz https://deno.land/x/fuzz/fuzzer.ts

Usage

export function fuzzTarget(input: Uint8Array): void {
  // ...
}
dfuzz fuzz_target.ts

Trophy case

List of bugs found with dfuzz.

  • Did dfuzz help you find a bug? Please add it to the list.

License

All files in libfuzzer directory are licensed NCSA. All other files are licensed under MIT license.

dfuzz's People

Contributors

littledivy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

dfuzz's Issues

compiling on linux fails

It fails with

clang++ -std=c++17 -w -fno-omit-frame-pointer -fsanitize=fuzzer-no-link -fno-sanitize=undefined -DCOMPILER_RT_SANITIZERS_TO_BUILD="" -g -O3 -shared -fPIC  libfuzzer/FuzzerCrossOver.cpp libfuzzer/FuzzerDataFlowTrace.cpp libfuzzer/FuzzerDriver.cpp libfuzzer/FuzzerExtFunctionsDlsym.cpp libfuzzer/FuzzerExtFunctionsWeak.cpp libfuzzer/FuzzerExtFunctionsWindows.cpp libfuzzer/FuzzerExtraCounters.cpp libfuzzer/FuzzerExtraCountersDarwin.cpp libfuzzer/FuzzerExtraCountersWindows.cpp libfuzzer/FuzzerFork.cpp libfuzzer/FuzzerInterceptors.cpp libfuzzer/FuzzerIO.cpp libfuzzer/FuzzerIOPosix.cpp libfuzzer/FuzzerIOWindows.cpp libfuzzer/FuzzerLoop.cpp libfuzzer/FuzzerMerge.cpp libfuzzer/FuzzerMutate.cpp libfuzzer/FuzzerSHA1.cpp libfuzzer/FuzzerTracePC.cpp libfuzzer/FuzzerUtil.cpp libfuzzer/FuzzerUtilDarwin.cpp libfuzzer/FuzzerUtilFuchsia.cpp libfuzzer/FuzzerUtilLinux.cpp libfuzzer/FuzzerUtilPosix.cpp libfuzzer/FuzzerUtilWindows.cpp fuzzer.cc -o libfuzzer.so
aa/usr/bin/ld: /tmp/FuzzerInterceptors-0b9bcb.o: .preinit_array section is not allowed in DSO
/usr/bin/ld: failed to set dynamic section sizes: nonrepresentable section on output
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:15: build] Error 1
clang --version
clang version 16.0.6 (Fedora 16.0.6-3.fc38)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Support different architectures

Currently there is only one hard-coded artifact (macos?), it would be great if this module gets updated to use plug and provide artifact for other os/archs.

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.