package afl-persistent

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

Install

Dune Dependency

Authors

Maintainers

Sources

v1.3.tar.gz
sha256=1148c43b9548a7ee146b9951dd2700bb303eeb11c76222077346620153a50e5d
md5=613ae369149ae8e2942e3c8bddd6798b

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: 13 Nov 2018

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 (2)

  1. base-unix
  2. ocaml >= "4.00"

Dev Dependencies

None

OCaml

Innovation. Community. Security.