Skip to content

test: cargo-fuzz targets with RFC 8785 seeds and CI smoke - #48

Merged
hyperpolymath merged 4 commits into
mainfrom
beta/fuzz-targets
Dec 2, 2026
Merged

hyperpolymath merged 4 commits into
mainfrom
beta/fuzz-targets

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

What

Three cargo-fuzz targets (parse_jcs, canon_roundtrip, cli_input), a seed corpus per target (RFC 8785 §3.2.3/§3.2.4 examples, all Appendix B number literals, and refusal inputs: duplicate key, lone surrogate, truncated, overflow), and a 60 s per-target smoke job (.github/workflows/fuzz.yml, pinned nightly + cargo-fuzz 0.13.2).

Evidence (local)

  • 40 s per target: ~2.2M, ~2.1M and ~1.0M runs, no crash.
  • Firing check: with the idempotence assertion inverted, canon_roundtrip panics within seconds.
  • This is smoke only; no sustained campaign. Fuzzing is evidence, not proof. cli_input cannot reach the binary-private read_bounded (documented in fuzz/README.adoc).

Notes

  • The commit is unsigned (the Branch-Floor ruleset requires signing); the owner must re-sign or merge via a signed path.
  • Not merged or tagged by this PR.

Generated by Claude Code

… RFC 8785 seed corpus and 60s CI smoke

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDhUv8btVaxjhTHSUtk
@gitnotebooks

gitnotebooks Bot commented Dec 1, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/hyperpolymath/ijson-jcs/pull/48

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 105 files, which is 5 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

Check out review usage here.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 90d4ec7c-7058-43c8-889e-cf2a072daf7c
Commits

Reviewing files that changed from the base of the PR and between 723343f and 56737e0.

Files ignored due to path filters: 1

  • fuzz/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 105

  • .github/workflows/fuzz.yml
  • fuzz/.gitignore
  • fuzz/Cargo.toml
  • fuzz/README.adoc
  • fuzz/corpus/canon_roundtrip/neg-duplicate-key
  • fuzz/corpus/canon_roundtrip/neg-lone-surrogate
  • fuzz/corpus/canon_roundtrip/neg-overflow
  • fuzz/corpus/canon_roundtrip/neg-truncated
  • fuzz/corpus/canon_roundtrip/neg-truncated-array
  • fuzz/corpus/canon_roundtrip/rfc8785-3.2.3-key-order
  • fuzz/corpus/canon_roundtrip/rfc8785-3.2.4-example
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-01
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-02
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-03
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-04
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-05
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-06
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-07
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-08
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-09
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-10
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-11
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-12
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-13
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-14
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-15
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-16
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-17
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-18
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-19
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-20
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-21
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-22
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-23
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-24
  • fuzz/corpus/canon_roundtrip/rfc8785-appendix-b-25
  • fuzz/corpus/cli_input/jsonld-good
  • fuzz/corpus/cli_input/neg-duplicate-key
  • fuzz/corpus/cli_input/neg-lone-surrogate
  • fuzz/corpus/cli_input/neg-overflow
  • fuzz/corpus/cli_input/neg-truncated
  • fuzz/corpus/cli_input/neg-truncated-array
  • fuzz/corpus/cli_input/records-good.jsonl
  • fuzz/corpus/cli_input/rfc8785-3.2.3-key-order
  • fuzz/corpus/cli_input/rfc8785-3.2.4-example
  • fuzz/corpus/cli_input/rfc8785-appendix-b-01
  • fuzz/corpus/cli_input/rfc8785-appendix-b-02
  • fuzz/corpus/cli_input/rfc8785-appendix-b-03
  • fuzz/corpus/cli_input/rfc8785-appendix-b-04
  • fuzz/corpus/cli_input/rfc8785-appendix-b-05
  • fuzz/corpus/cli_input/rfc8785-appendix-b-06
  • fuzz/corpus/cli_input/rfc8785-appendix-b-07
  • fuzz/corpus/cli_input/rfc8785-appendix-b-08
  • fuzz/corpus/cli_input/rfc8785-appendix-b-09
  • fuzz/corpus/cli_input/rfc8785-appendix-b-10
  • fuzz/corpus/cli_input/rfc8785-appendix-b-11
  • fuzz/corpus/cli_input/rfc8785-appendix-b-12
  • fuzz/corpus/cli_input/rfc8785-appendix-b-13
  • fuzz/corpus/cli_input/rfc8785-appendix-b-14
  • fuzz/corpus/cli_input/rfc8785-appendix-b-15
  • fuzz/corpus/cli_input/rfc8785-appendix-b-16
  • fuzz/corpus/cli_input/rfc8785-appendix-b-17
  • fuzz/corpus/cli_input/rfc8785-appendix-b-18
  • fuzz/corpus/cli_input/rfc8785-appendix-b-19
  • fuzz/corpus/cli_input/rfc8785-appendix-b-20
  • fuzz/corpus/cli_input/rfc8785-appendix-b-21
  • fuzz/corpus/cli_input/rfc8785-appendix-b-22
  • fuzz/corpus/cli_input/rfc8785-appendix-b-23
  • fuzz/corpus/cli_input/rfc8785-appendix-b-24
  • fuzz/corpus/cli_input/rfc8785-appendix-b-25
  • fuzz/corpus/parse_jcs/neg-duplicate-key
  • fuzz/corpus/parse_jcs/neg-lone-surrogate
  • fuzz/corpus/parse_jcs/neg-overflow
  • fuzz/corpus/parse_jcs/neg-truncated
  • fuzz/corpus/parse_jcs/neg-truncated-array
  • fuzz/corpus/parse_jcs/rfc8785-3.2.3-key-order
  • fuzz/corpus/parse_jcs/rfc8785-3.2.4-example
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-01
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-02
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-03
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-04
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-05
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-06
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-07
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-08
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-09
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-10
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-11
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-12
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-13
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-14
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-15
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-16
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-17
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-18
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-19
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-20
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-21
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-22
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-23
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-24
  • fuzz/corpus/parse_jcs/rfc8785-appendix-b-25
  • fuzz/fuzz_targets/canon_roundtrip.rs
  • fuzz/fuzz_targets/cli_input.rs
  • fuzz/fuzz_targets/parse_jcs.rs

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T22:59:09.861940Z 56737e0 New commits
🔒 Security Review ✅ Completed 2026-12-02T22:59:39.154294Z 56737e0 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@hyperpolymath
hyperpolymath enabled auto-merge (squash) December 2, 2026 22:53

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8428c9c9e2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1 @@
{"numbers":[333333333.33333329,1E30,4.50,2e-3,0.000000000000000000000000001],"string":"€$\u000F\u000aA'B"\\\\"\/","literals":[null,true,false]} No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Repair the malformed RFC 8785 example seed

This seed contains an unescaped quote after A'B, so it is invalid JSON and every harness rejects it before exercising the RFC 8785 §3.2.4 successful canonicalization path. The same malformed bytes are duplicated in all three corpora, meaning the advertised RFC example provides no positive-path coverage until the string escaping is corrected.

Useful? React with 👍 / 👎.

@hyperpolymath
hyperpolymath merged commit 847ee34 into main Dec 2, 2026
5 of 6 checks passed
@hyperpolymath
hyperpolymath deleted the beta/fuzz-targets branch December 2, 2026 22:57
@sonarqubecloud

sonarqubecloud Bot commented Dec 2, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants