Avoid parsing to non-finite floating point numbers
未关闭
还没有人认领这个 Issue。
- 主要语言
- Rust
- 星标
- 869
- 派生
- 152
- 平均合并
- 15 小时 8 分钟
- 30 天内合并 PR
- 12
描述
In #165, this input 3E833 is parsed as a Token::Number whose value is std::f32::INFINITY, which serializes as inf.
We should definitely not serialize any number as inf (maybe an arbitrary large number instead), but probably also avoid non-finite numbers in tokens in the first place.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 #165 中的 3E833 case 作为起始输入,并检查 Token::Number 的解析和序列化路径。确定预期完成项是拒绝非有限 token 值、防止序列化 inf,还是两者都要;完成意味着针对该输入覆盖了所选行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- css, rust
- 领域
- web-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100