libgit2 / libgit2/libgit2sharp
Ensure any passed in string doesn't contains the `\0` character
未关闭
还没有人认领这个 Issue。
Easy fix
Up for grabs
- 主要语言
- C#
- 星标
- 3.5k
- 派生
- 925
- PR 合并指标
- 30 天内没有已合并 PR
描述
Following discussion with @ethomson in https://github.com/libgit2/libgit2sharp/pull/530#issuecomment-26069471 , some methods are now protected against the evil zero character (cf . https://github.com/libgit2/libgit2sharp/commit/28d1820f0d45f5d75e5a9f08e009898430b21561, for instance).
It would make sense to also protect every remaining string in the API that is eventually passed to libgit2.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先查看 pull request #530 和 commit 28d1820f0d45f5d75e5a9f08e009898430b21561 中讨论的保护措施,然后审查传递给 libgit2 的其余 API 字符串。完成的标准是,每个适用的传入字符串都受到 \0 字符的保护。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, git
- 领域
- api, backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100