package afl-persistent

  1. Overview
  2. Docs
use afl-fuzz in persistent mode

Install

Dune Dependency

Authors

Maintainers

Sources

v1.1.tar.gz
sha256=e30e2a7c9c0972fc2f953c42720b7d7865775330c14de97d3fe7097ab3be154f
md5=5aee7d5233c99a73a6344bf0451d0618

Description

afl-fuzz normally works by repeatedly fork()ing the program being tested. using this package, you can run afl-fuzz in 'persistent mode', which avoids repeated forking and is much faster.

Published: 12 Jan 2017

README

afl-persistent - persistent-mode afl-fuzz for ocaml

by using AflPersistent.run, you can fuzz things really fast:

let f () =
  let s = read_line () in
  match Array.to_list (Array.init (String.length s) (String.get s)) with
    ['s'; 'e'; 'c'; 'r'; 'e'; 't'; ' '; 'c'; 'o'; 'd'; 'e'] -> failwith "uh oh"
  | _ -> ()

let _ = AflPersistent.run f

compile with a version of ocaml that supports afl. that means trunk for now, but the next release (4.05) will work too, and pass the -afl-instrument option to ocamlopt.

Dependencies (3)

  1. base-unix
  2. topkg build & >= "0.7.6"
  3. ocaml >= "4.05"

Dev Dependencies

None

OCaml

Innovation. Community. Security.