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.
- Make many odd inputs
- Watch for a crash
- Save the start value
- Shrink the input
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The street of doors | The input points of the program |
| Rattling handles fast | Making and running many odd inputs |
| A door that gives way | A crash or a hang |
| Finding which part of the push mattered | Shrinking 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.
| In the trick | What it stands for |
|---|---|
| Save the start value | A fuzzer needs a starting point to repeat the run |
| Replay | Run the crashing input again |
| Shrink | Find 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
- 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)
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.
- 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)
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.
- 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)
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.
- 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)
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.
- 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.
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.