Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix4 #1

Closed
wants to merge 2 commits into from
Closed

fix4 #1

Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -2,28 +2,37 @@ language: cpp
dist: xenial
compiler: clang

branches:
only:
- master

stages:
- name: Fuzzing
# if: type = cron

jobs:
include:
- stage: Fuzzing
name: Continuous Fuzzing via Fuzzit (fuzzing daily)
name: Continuous Fuzzing via Fuzzit
language: bash
compiler: clang
script:
- export CC=`which clang`
- export CXX=`which clang++`
- mkdir -p build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=AddressSanitizer
- make
- wget -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v1.2.5/fuzzit_1.2.5_Linux_x86_64
- chmod a+x fuzzit
- ./fuzzit auth ${FUZZIT_AUTH_KEY}
- export TARGET_ID=Ba04ssna9qEd7bwN27Xz
- ./fuzzit create job --branch ${TRAVIS_BRANCH} --revision ${TRAVIS_COMMIT} ${TARGET_ID} ./fuzz/fuzz_test_string
- |
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
export FUZZING_TYPE="fuzzing"
else
export FUZZING_TYPE="sanity"
fi
export CC=`which clang`
export CXX=`which clang++`
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=AddressSanitizer
make
wget -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v1.2.5/fuzzit_1.2.5_Linux_x86_64
chmod a+x fuzzit
./fuzzit auth ${FUZZIT_AUTH_KEY}
export TARGET_ID=Ba04ssna9qEd7bwN27Xz
./fuzzit create job --type ${FUZZING_TYPE} --branch ${TRAVIS_BRANCH} --revision ${TRAVIS_COMMIT} ${TARGET_ID} ./fuzz/fuzz_test_string
env:
global:
@@ -1,3 +1,4 @@
[![Build Status](https://travis-ci.org/fuzzitdev/example.svg?branch=master)](https://travis-ci.org/fuzzitdev/example)
![fuzzit](https://app.fuzzit.dev/badge?org_id=hP8u8bNAda91Cnj0mKPX&branch=master)

# Continuous Fuzzing Example
@@ -12,7 +12,7 @@ int test_string(const char *src, size_t len)
} else {
if (strncmp(src, FLAG, strlen(FLAG)) == 0) {
// TRIGGER HEAP OVERFLOW READ
if (src[len] == 0) {
if (src[len-1] == 0) {
return -2;
}
return -1;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.