mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
- 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]>
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 buildSubscriptionListEvent (file:///app/js/nostrEventSchemas.js:2183:54) at fuzzFunction (file:///app/scripts/agent/fuzz-nostrEventSchemas.mjs:210:14) at file:///app/scripts/agent/fuzz-nostrEventSchemas.mjs:244:3