rpcserver: crash in case client fails to parse batch
还没有人认领这个 Issue。
评估
调研方向
从 rpcserver.go 中第 362 行附近的 batch 处理以及第 1447 行附近的拒绝消息逻辑开始。跟踪客户端解析失败的路径,并验证当 batch 为 nil 时不再崩溃,同时生成预期的拒绝响应。
由索引模型根据 Issue 内容生成。
描述
If the server sends a batch that the client is unable to parse (https://github.com/lightninglabs/pool/blob/073fe0d369e1e544e0752a1f804a5851fefb71bf/rpcserver.go#L362), we will crash when attempting to use the nil batch struct in the reject message: https://github.com/lightninglabs/pool/blob/073fe0d369e1e544e0752a1f804a5851fefb71bf/rpcserver.go#L1447
- 主要语言
- Go
- 星标
- 256
- 派生
- 53
- 平均合并
- 20 小时 22 分钟
- 30 天内合并 PR
- 5
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
lightninglabs/pool 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 22/100
lightninglabs/pool#536 ·
-
难度 4/5 3-5 天 新手友好度 48/100
lightninglabs/pool#514 · 16 条评论 ·
-
难度 4/5 3-5 天 新手友好度 32/100
lightninglabs/pool#478 · 3 条评论 ·
-
batch batch execution optimization
难度 4/5 3-5 天 新手友好度 35/100
lightninglabs/pool#456 ·
-
add pool-client initiated pings可能重新可做 @positiveblue 于 1278 天前认领,目前没有进行中的 PR。 未关闭
lightninglabs/pool#455 · 已指派 1 人 ·
查看 lightninglabs/pool 的全部 Issue
相似的 Issue
-
Typos Check fails when the typos binary download fails可能已有人在做 @akshat-kumar-singhal 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
defect
难度 2/5 1-3 小时 新手友好度 78/100
nats-io/nats-server#8966 ·
维护者通常 1 天内回复
-
cmd/fix, x/tools/go/analysis/passes/modernize: mapsloop moves comments out of the range operand可能已有人在做 @muratmirgun 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
Cojekt/LibreDental#258 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
stacklok/toolhive-catalog#2094 ·
维护者通常 1 天内回复