Files
google-labs-jules[bot]andPR0M3TH3AN 932e57c724 Fuzz testing and hardening for nostrEventSchemas and magnetUtils
- Added fuzzing scripts for nostrEventSchemas, dmDecryptor, and magnetUtils.
- Fixed crashes in nostrEventSchemas related to unsafe stringification of content.
- Fixed crash in magnetUtils when options argument is null.
- Added safeStringify helper in nostrEventSchemas.js.
- Included fuzzing reports and reproducers.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-23 16:12:42 +00:00
..

To run:

node --import ../../../tests/test-helpers/setup-localstorage.mjs repro.mjs

Error: Explosion! Stack: Error: Explosion! at Object.toString (file:///app/scripts/agent/fuzz-nostrEventSchemas.mjs:103:29) at String () at buildVideoMirrorEvent (file:///app/js/nostrEventSchemas.js:878:54) at fuzzFunction (file:///app/scripts/agent/fuzz-nostrEventSchemas.mjs:210:14) at file:///app/scripts/agent/fuzz-nostrEventSchemas.mjs:244:3