GithubHelp home page GithubHelp logo

metalnem / libfuzzer-dotnet Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 9.0 31 KB

libFuzzer driver for SharpFuzz

License: MIT License

C++ 89.80% PowerShell 4.13% C# 6.07%
fuzz-testing fuzzer fuzzing libfuzzer testing

libfuzzer-dotnet's People

Contributors

gfoidl avatar metalnem avatar ranweiler avatar ufo95 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

libfuzzer-dotnet's Issues

Target can outlive parent harness in some cases

When testing single inputs on Windows (using libfuzzer-dotnet.exe --target_path=my-target.exe some-input.txt), the harness can be observed to exit, while the target child process continues, blocked on an IPC read. When invoked in some settings, this can cause the entire process tree to appear to hang.

If we spawn the target in a job object with the appropriate settings, we can instead ensure that the child is terminated when the parent exits.

Aligning Clang versions

This is mostly just an FYI/suggestion as I'm not experiencing any problems with libfuzzer-dotnet.

The build pipelines uses the default Clang for Windows and Ubuntu and manually installs Clang-16 for Debian.
So for the v2023.06.26.1359 release of libfuzzer-dotnet these different versions of Clang where used:

  • Windows: 15.0.7
  • Ubuntu: 14.0.6
  • Debian: 16.0.6

windows-latest has recently been updated to clang-16 and ubuntu-latest will be updated to include clang-15, but still default to clang-14.

So to bring the three OS targets of libfuzzer-dotnet closer, it might be beneficial to at least use clang-15 for Ubuntu when that PR is merged and released.

The commits that looked directly relevant to libfuzzer by comparing https://github.com/llvm/llvm-project/tree/main/compiler-rt/lib/fuzzer

llvmorg-14.0.6..llvmorg-15.0.7

92fb310151d2 [libFuzzer] Extend the fuzz target intarface to allow -1 return value.
7524fe962e47 [libFuzzer] Use the compiler to link the relocatable object
fc0bd3c2cee9 [libFuzzer] Refactor GetNextInstructionPc/GetPreviousInstructionPc

llvmorg-15.0.7..llvmorg-16.0.6

6c485409de52 Adding missing colon
98c2754abd8f [Libfuzzer] Include signal.h for SIGINT
aa0e9046c16b Libfuzzer fix for Ctrl + c not working with -fork and -ignore_crashes=1

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.