Integers should have no size limitation.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- backend
Research direction
Start in lib/decode.js at lines 18-28 and reproduce the example showing that two large integer inputs decode identically. Check the existing decoder behavior and determine how the implementation will honor the specification, either by preserving large integers or rejecting them. Done means large integer inputs are no longer silently corrupted.
Written by the indexing model from the issue text.
Description
Bug: it fails to satisfy the specification.
BEP 52 — The BitTorrent protocol specification version 2
Integers have no size limitation.
Currently, node-bencode allows decoded integer data to be corrupted. It should either use bigints or throw on a long integer input.
yourdecode("i9007199254740991e") === yourdecode("i9007199254740992e")
- 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 2/5 1-3 hours Newbie friendliness 45/100
webtorrent/node-bencode#178 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
webtorrent/node-bencode#146 · 2 comments ·
-
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 ·