decode.bytes does not adhere to abstract-encoding spec
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- backend
调研方向
从 decode.bytes 入口开始,将其行为与 abstract-encoding 规范进行比较。复现包含额外数据的输入解码,然后添加或更新覆盖测试,使结果仅报告已消耗的字节数,而不是完整输入的长度。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- JavaScript
- 星标
- 173
- 派生
- 38
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
webtorrent/node-bencode 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 62/100
webtorrent/node-bencode#162 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 35/100
webtorrent/node-bencode#146 · 2 条评论 ·
-
难度 3/5 1-2 天 新手友好度 48/100
webtorrent/node-bencode#143 ·
-
难度 2/5 1-3 小时 新手友好度 58/100
webtorrent/node-bencode#142 ·
-
难度 2/5 1-3 小时 新手友好度 15/100
webtorrent/node-bencode#103 ·
查看 webtorrent/node-bencode 的全部 Issue
相似的 Issue
-
external-issue to-triage
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
LearningCircuit/local-deep-research#7067 ·
维护者通常 1 天内回复
-
automated issue report
难度 1/5 1 小时以内 新手友好度 65/100
lirantal/discoprint#32 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复