decode.bytes does not adhere to abstract-encoding spec
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- backend
Research direction
Start at the decode.bytes entry point and compare its behavior with the abstract-encoding specification. Reproduce decoding input containing additional data, then add or update coverage so the result reports only the bytes consumed rather than the full input length.
Written by the indexing model from the issue text.
Description
What version of this package are you using?
Latest
What operating system, Node.js, and npm version?
Arch Linux, latest Node LTS (v20)
What happened?
decode.bytes returns the length of the entire input data after decoding
What did you expect to happen?
It should've returned only the number of bytes consumed.
Are you willing to submit a pull request to fix this bug?
Yes
- Dominant language
- JavaScript
- Stars
- 173
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from webtorrent/node-bencode
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
webtorrent/node-bencode#162 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
webtorrent/node-bencode#146 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
webtorrent/node-bencode#143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
webtorrent/node-bencode#142 ·
-
Dependency Dashboard Open
Difficulty 2/5 1-3 hours Newbie friendliness 15/100
webtorrent/node-bencode#103 ·
All issues in webtorrent/node-bencode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·