GithubHelp home page GithubHelp logo

ispras / oss-sydr-fuzz Goto Github PK

View Code? Open in Web Editor NEW
127.0 9.0 32.0 12.03 MB

OSS-Sydr-Fuzz - OSS-Fuzz fork for hybrid fuzzing (fuzzer+DSE) open source software.

Home Page: https://sydr-fuzz.github.io

License: Apache License 2.0

Dockerfile 9.07% Shell 20.75% C 50.58% Makefile 0.33% C++ 12.65% Rust 1.88% Meson 0.12% Python 3.04% Go 0.27% Java 0.67% JavaScript 0.32% C# 0.30%
security fuzzing fuzz-testing vulnerabilities stability oss-fuzz dse symbolic-execution symbolic sydr

oss-sydr-fuzz's Issues

Learning/testing the framework: Where is 'sydr.zip'?

To learn and test your framework, I see that it is necessary to have the archive file sydr.zip.
Where can I find it?

## Run Hybrid Fuzzing

Unzip Sydr (`sydr.zip`) in `projects/XXX` directory:

    $ unzip sydr.zip

[openssl] harness for sydr with memory leak

Hi!

I used sydr for fuzzing openssl and discovered that all sydr harnesses lack memory freeing.
This results in a memory leak.
For example, corrected asn1_sydr.c main function looks like this:

int main(int argc, char** argv)
{
  FuzzerInitialize(&argc, &argv);
  FILE* fd = fopen(argv[1], "rb");
  if (!fd) return 1;
  fseek(fd, 0, SEEK_END);
  long fsize = ftell(fd);
  fseek(fd, 0, SEEK_SET);
  char* buffer = (char*)malloc(fsize);
  fread(buffer, 1, fsize, fd);
  fclose(fd);
  int ret = FuzzerTestOneInput((const uint8_t*)buffer, fsize);
  free(buffer); // need to prevent memory leak;
  FuzzerCleanup();
  return ret;
}

I can make a pull request with fixes to openssl, but there are similar cases in other projects.
Do I need to make a pull request with fixes?

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.