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: Cannot convert object to primitive value Stack: TypeError: Cannot convert object to primitive value at String () at buildHashtagPreferenceEvent (file:///app/js/nostrEventSchemas.js:2249:54) at fuzzFunction (file:///app/scripts/agent/fuzz-nostrEventSchemas.mjs:210:14) at file:///app/scripts/agent/fuzz-nostrEventSchemas.mjs:244:3