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]>
18 lines
349 B
JavaScript
18 lines
349 B
JavaScript
|
|
import { buildWatchHistoryEvent } from '../../../js/nostrEventSchemas.js';
|
|
|
|
const args = [
|
|
{
|
|
"content": {}
|
|
}
|
|
];
|
|
|
|
console.log('Running reproduction for buildWatchHistoryEvent...');
|
|
try {
|
|
buildWatchHistoryEvent(...args);
|
|
console.log('No crash reproduced.');
|
|
} catch (error) {
|
|
console.log('Crash reproduced:');
|
|
console.error(error);
|
|
}
|