Skip to content

Instantly share code, notes, and snippets.

@drewxa
Last active December 1, 2016 12:09
Show Gist options
  • Save drewxa/d3f53b17af5b9e11ceb9336b77051c69 to your computer and use it in GitHub Desktop.
Save drewxa/d3f53b17af5b9e11ceb9336b77051c69 to your computer and use it in GitHub Desktop.

Address Sanitizer

clang -fsanitize=address -lstdc++ %filename% -o %output_filename%

libFuzzer

build libFuzzer

~/Fuzzer/build.sh

simple test

  1. clang -lstdc++ -g -fsanitize=address -fsanitize-coverage=edge ~/fuzzer-test-suite/tutorial/fuzz_me.cc libFuzzer.a
  2. ./a.out

Heartbleed

  1. mkdir -p ~/tmp; rm -rf ~/tmp/*; cd ~/tmp
  2. ~/fuzzer-test-suite/openssl-1.0.1f/build.sh
  3. ./openssl-1.0.1f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment