TOPIC 41/5118 MINNOT STARTED

From monkey testing to fuzzing, and shrinking a failing input

Feed a program very many odd inputs and watch for crashes. Then cut a crashing input down to a few characters so the cause is easy to see.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: rattling every door handle along a street you own, then finding which handle gave way. You do not plan each door. You try very many, fast, and you watch for the one that opens when it should not. Then you ask what exactly you did to that door.

Daily List is a to-do list app. It lets a person import tasks from a text file. Each line holds a title, then a due date, then a reminder time. Leo wrote the part that reads these lines.

Tom tries three good lines, and all three work. Mei asks what happens with lines that nobody planned. Tom cannot type a million odd lines by hand. So he lets a small program make them, on the Daily List test site that the team owns.

This is fuzzing: feeding a program very many odd inputs and watching for a crash or a hang. A crash is when the program stops with an error nobody planned. A hang is when it never finishes.

A mutation-based fuzzer often uses starting points. A generation-based fuzzer can build inputs from a format model, and some tools can start with an empty corpus. A is a small set of good sample inputs that the fuzzer changes a little at a time. Some fuzzers also watch which parts of the code each input reaches. That is .

When an input does crash the program, it is often long and messy. Tom then shrinks it. He cuts pieces away while the crash still happens, until a tiny input is left. A tiny input is easy to read and easy to fix.

The picture has limits. A door handle is simple. A program can fail in many ways, and this lesson's basic crash-only harness misses silent wrong answers. Fuzzing can also use assertions, sanitizers or comparisons between implementations as oracles.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)

PLAIN WORDS · 4 in this section
rattling
making a short, shaking noise
fuzzing
feeding a program many odd inputs to find breaks
fuzzer
a tool that feeds a program many odd inputs
fuzzers
tools that feed a program many odd inputs

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Trying very many odd inputs fast, then cutting a crashing one down to its core.

  1. Make many odd inputs
  2. Watch for a crash
  3. Save the start value
  4. Shrink the input
Rattle fast, find the door, shrink the push

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The street of doorsThe input points of the program
Rattling handles fastMaking and running many odd inputs
A door that gives wayA crash or a hang
Finding which part of the push matteredShrinking the input

WHERE THIS PICTURE STOPS

  • Door handles are simple. A program can fail in quiet ways that fuzzing cannot see.
  • You can see a door give way. A fuzzer needs a clear sign, such as a crash.
  • A street you own is safe to rattle. Fuzz only systems you may test.

HOOK

Rattle fast, find the door, shrink the push.

REMEMBER IT THIS WAY

A sequence: the real steps, in order.

After a fuzzer finds a crash, do three things: save the start value, replay the crash, shrink the input to its core.

What each part of the trick stands for
In the trickWhat it stands for
Save the start valueA fuzzer needs a starting point to repeat the run
ReplayRun the crashing input again
ShrinkFind which part of the push mattered

TELL A FRIEND

You rattle every handle on your own street, quickly. When one gives way, you work out which push did it.

OFTEN MIXED UP WITH Ad hoc, monkey and exploratory testing compared. taps the screen at random. This lesson sends odd data straight into one input point and then shrinks the crash.

PRACTISE AND KEEP

Sources for this topic — 5 sources
  1. Market practice

    An Empirical Study of the Reliability of Unix Utilities (Miller, Fredriksen and So, Communications of the Association for Computing Machinery, 1990) ↗ — University of Wisconsin-Madison (Computer Sciences) · A program fed random characters crashed or hung a large share of common utilities; crashes were abnormal ends or endless loops (search excerpt, page not opened)

    Describes the first fuzz study: a program fed random characters crashed or hung a quarter to a third of the utilities tested, and crashes were counted as abnormal ends or endless loops. Search excerpts also say the code and data were released openly. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Communications of the ACM volume 33 issue 12, December 1990; a 1989 technical report has the same title. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    Fuzzing: test cases are not all random (Synopsys blog) ↗ — Synopsys · Fuzzing sends intentionally invalid data to trigger a fault; it is not only random, because fuzzers can build inputs from a specification or change valid samples (search excerpt, page not opened)

    Quotes a definition of fuzzing as sending intentionally invalid data to a product to trigger a fault. Says fuzzing is not only random: fuzzers can build inputs from a specification or change valid samples, the generation-based and mutation-based kinds. Vendor blog. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Simplifying and Isolating Failure-Inducing Input (Zeller and Hildebrandt, Institute of Electrical and Electronics Engineers Transactions on Software Engineering, 2002) ↗ — Saarland University · Delta debugging cuts a failing input down to a smaller one that still fails (search excerpt, page not opened)

    Describes delta debugging: an automatic method that cuts a failing input down to a smaller one that still fails. Their case study cut 896 lines of web page code to the one line that crashed a browser. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Transactions on Software Engineering volume 28 issue 2, pages 183 to 200. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    Ideal integration (documentation of a large open-source fuzzing service, mirror copy) ↗ — Google (documentation mirrored by a third party) · A seed corpus is a set of test inputs a fuzzer starts from and mutates; its quality strongly affects how fast new code paths are found (search excerpt of a mirror copy, page not opened)

    Says a seed corpus is a set of test inputs a fuzzer starts from and changes, that its quality strongly affects how fast new code paths are found, and that a good corpus is small with wide coverage. The official page was not seen; this is a mirror. Project documentation. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  5. Market practice

    libFuzzer: a library for coverage-guided fuzz testing ↗ — LLVM Project · Publisher material opened 6 November 2026; version and scope recorded in source registry and domain audit. Synthetic Daily List outcomes follow the stated teaching contract.

    Corpus mutation, coverage guidance, sanitizers and failure artifacts; the manual shows empty-corpus startup too. Tool guidance, not a universal fuzz oracle. · Checked 2026-11-06

    Rolling official manual opened 6 November 2026; no immutable release claimed. Paraphrased for teaching; no licence claim.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.