mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
This commit adds a minimal reproducer script that demonstrates a bug where comments on an original video are hidden when viewing that video via a Repost (Kind 6). The issue stems from `normalizeCommentTarget` using the Repost's metadata (Kind 6, Reposter Pubkey) instead of the Original Video's metadata to generate the comment filter descriptor. This causes valid comments (which tag the Original Video) to be filtered out by `isVideoCommentEvent`. Added: - `examples/reproducers/2-repost-comment-visibility-bug/reproduce_issue.js` - `examples/reproducers/2-repost-comment-visibility-bug/README.md`
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
buildVideoPostEventcrashes on circular objects if not handled (Fixed).normalizeAndAugmentMagnetcrashes on non-iterableextraTrackers(Fixed).build...functions crash onnull/undefinedinput (Fixed).