Files
bitvid/examples/reproducers
google-labs-jules[bot] 5c2e9cd7f8 feat: add fuzz testing harness and fix repost builder
- Created generic fuzzing library `scripts/agent/fuzz-lib.mjs`.
- Implemented fuzz targets for `nostrEventSchemas.js`, `dmDecryptor.js`, and `magnetUtils.js`.
- Fixed `buildRepostEvent` to allow missing relay URLs for robustness.
- Added crash reproducers to `examples/reproducers/`.
2026-01-20 16:42:46 +00:00
..

Fuzz Testing Reproducers

This directory contains reproducers for crashes found during fuzz testing. These files contain the input that caused a crash and the error message.

How to run

The reproducers are JSON files. To re-run a specific case, you can use the fuzz harness and load the JSON input, or manually import the function and call it with the input.

Example structure:

{
  "target": "functionName",
  "input": { ... },
  "error": { ... }
}

Known Issues

  • buildVideoPostEvent crashes on circular objects if not handled (Fixed).
  • normalizeAndAugmentMagnet crashes on non-iterable extraTrackers (Fixed).
  • build... functions crash on null/undefined input (Fixed).