---
title: "Fuzzing rust-minidump for Embarrassment and Crashes – Part 2"
description: "Fuzzing rust-minidump with cargo-fuzz and libfuzzer turned up a series of real bugs in a Rust rewrite of Breakpad's minidump processor that had otherwise shipped cleanly."
url: "https://swe.quest/articles/fuzzing-rust-minidump-for-embarrassment-and-crashes-part-2-036e58ccd9566822"
canonical: "https://hacks.mozilla.org/2022/06/fuzzing-rust-minidump-for-embarrassment-and-crashes/"
source: "Mozilla Hacks"
published: "2022-06-23"
difficulty: "medium"
kind: "Case study"
reading_minutes: 16
tags: ["testing","rust","debugging","vulnerability-research"]
---

# Fuzzing rust-minidump for Embarrassment and Crashes – Part 2

A post on [Mozilla Hacks](https://swe.quest/sources/mozilla-hacks.md), published 2022-06-23, 16 min read, Case study. Original: [https://hacks.mozilla.org/2022/06/fuzzing-rust-minidump-for-embarrassment-and-crashes/](https://hacks.mozilla.org/2022/06/fuzzing-rust-minidump-for-embarrassment-and-crashes/)

## Summary

Fuzzing rust-minidump with cargo-fuzz and libfuzzer turned up a series of real bugs in a Rust rewrite of Breakpad's minidump processor that had otherwise shipped cleanly. They include an ARM64 stackwalker infinite loop that grew backtraces until OOM, a flipped comparison that silently emptied the MinidumpLinuxMaps RangeMap, OOMs from Vec::with\_capacity on untrusted list lengths, and several integer overflows. The OOM fix checks that the remaining section bytes can actually hold the claimed item count, which bounds reservations to O(n) in the dump size. Rust's debug-build overflow panics and liberal assertions made each bug deterministically reproducible as a tiny checked-in test, and well-scoped issue reports with fixes made the fuzzing contributions genuinely useful to maintainers.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)

## Prerequisites

- Rust basics ([easy posts on Rust](https://swe.quest/tags/rust.md?difficulty=easy))
- stack unwinding
- fuzzing concepts ([easy posts on Vulnerability research](https://swe.quest/tags/vulnerability-research.md?difficulty=easy))

## Keywords

rust-minidump, cargo-fuzz, libfuzzer, Breakpad, minidump-stackwalk, ARM64

## Related posts

- [Everything Is Broken: Shipping rust-minidump at Mozilla – Part 1](https://swe.quest/articles/everything-is-broken-shipping-rust-minidump-at-mozilla-part-1-75139938732d2040.md): Mozilla Hacks · 2022-06-14 · Medium · 19 min read · Rust, Testing, Debugging, Refactoring & migrations
  rust-minidump, a pure-Rust replacement for the minidump-processing half of Google Breakpad, has been Firefox's crash-processing backend for six months, running in about half the time of Breakpad and appearing more reliable.
- [Core dump epidemiology: fixing an 18-year-old bug](https://swe.quest/articles/core-dump-epidemiology-fixing-an-18-year-old-bug-49f918c45e5e4eb3.md): OpenAI · 2026-06-30 · Hard · 16 min read · Debugging, C & C++, Linux, Hardware, Incidents & postmortems
  Mysterious return-to-bogus-address crashes in Rockset's C++ execution layer turned out to be two unrelated bugs: silent register corruption on a single bad Azure host, and an 18-year-old race in GNU libunwind's \_Ux86\_64\_setcontext, which read the synthesized ucontext\_t after moving %rsp past it, letting a frequent SIGUSR2 CPU-time signal clobber it during exception unwinding.
- [Improving Firefox stability on Linux](https://swe.quest/articles/improving-firefox-stability-on-linux-d17615a93e9d8285.md): Mozilla Hacks · 2021-05-19 · Medium · 6 min read · Debugging, Linux, Observability, Open source, Rust
  Mozilla went from being able to symbolicate under 20% of Linux Firefox crash reports to over 99% by scraping debug information for distro-packaged Firefox builds and their dependencies (GTK, Mesa, fontconfig, SQLite, etc.) from Arch, Debian, Fedora, OpenSUSE and Ubuntu repositories.
- [Porting the Solana eBPF JIT compiler to ARM64](https://swe.quest/articles/porting-the-solana-ebpf-jit-compiler-to-arm64-2640f585a04d44ad.md): Trail of Bits · 2022-10-12 · Hard · 11 min read · Compilers, Runtimes & VMs, Rust, Sandboxing & isolation, Memory safety
  Solana's RBPF JIT compiler, which translates eBPF smart contracts to native code on validators, was ported from x86-only to ARM64, and its x86 backend gained Windows support.
- [Eliminating Data Races in Firefox – A Technical Report](https://swe.quest/articles/eliminating-data-races-in-firefox-a-technical-report-5763b33d1a4f6f94.md): Mozilla Hacks · 2021-04-06 · Hard · 11 min read · Concurrency, C & C++, Rust, Debugging, Static analysis
  Mozilla deployed ThreadSanitizer across Firefox's C/C++ and Rust code, using a compiled-in suppression list to gate new races in CI while legacy ones were triaged toward a "no data races" policy.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
