• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cameri / nostream / 46326495726
78%
main: 81%

Build:
Build:
LAST BUILD BRANCH: rewrite/main
DEFAULT BRANCH: main
Ran 30 Nov 2026 12:05AM UTC
Jobs 2
Files 321
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Nov 2026 12:02AM UTC coverage: 77.627% (+0.005%) from 77.622%
46326495726

push

github

web-flow
feat(fuzz): a cargo-fuzz target per untrusted-input parser (#1289)

## What

`fuzz/` is a cargo-fuzz crate of its own (an empty `[workspace]`, so the
root workspace stays at ten members) with one target per hand-written
parser that takes bytes from a socket or an operator's file:

| target | parser |
|---|---|
| `client_frame` | `nostream_core::messages::decode` |
| `filter` | `nostream_core::filter::validate_filter` |
| `settings` | `nostream_config::load` |
| `nip11` | `nostream_relay::nip11::parse_relay_pubkey` + `document` |

Each target path-depends on the crate that owns its parser (nothing is
copied), calls it on every input, and asserts the invariant its doc
comment states. Seeds under `fuzz/seeds/<target>/` are the cases the
crates' own tests already use.

The crate carries its own `nightly-2026-08-21` pin: cargo-fuzz always
emits `-Zsanitizer=address` and the repository pin is a stable that
rejects it. Nothing outside `fuzz/` selects that toolchain; the root pin
is unedited and the root build still reports `1.99.1`.

Work is bounded by the runtime, not by a timer in the harness: every
campaign passes `-max_len=131072` (the socket's own payload bound),
`-timeout=10` and `-rss_limit_mb=2048`.

## The 60 s campaigns

cargo-fuzz 0.13.2, `nightly-2026-08-21`, `-max_total_time=60
-max_len=131072 -timeout=10 -rss_limit_mb=2048`:

| target | first `INITED` | result |
|---|---|---|
| `client_frame` | `cov: 641 ft: 1005` | `Done 2008021 runs in 61
second(s)` |
| `filter` | `cov: 501 ft: 668` | `Done 2195083 runs in 61 second(s)` |
| `settings` | `cov: 4847 ft: 7804` | `Done 7202 runs in 61 second(s)` |
| `nip11` | `cov: 5250 ft: 6275` | `Done 25673 runs in 61 second(s)` |

All four exit 0; `find fuzz/artifacts -type f` prints `0`. The
stub-target baseline is `INITED cov: 14`, and the target bodies are the
greps the job records, so the figures are trend, not proof.

One campaign did stop: the settings target's first run crashed on a
five-byte input, `!... (continued)

4513 of 6355 branches covered (71.01%)

Branch coverage included in aggregate %.

9824 of 12114 relevant lines covered (81.1%)

763.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Integration - 46326495726.1 30 Nov 2026 12:05AM UTC 321
33.07
GitHub Action Run
2 Unit - 46326495726.2 30 Nov 2026 12:06AM UTC 321
75.08
GitHub Action Run
Source Files on build 46326495726
  • Tree
  • List 321
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #46326495726
  • 8488bf13 on github
  • Prev Build on rewrite/main (#46318071802)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc