Ruby: &[SPACE][identifier] syntax breaks Ruby parsing
还没有人认领这个 Issue。
评估
调研方向
首先,使用 issue 中的两个 sort 示例重现 Ruby parser 的失败,重点关注 \u0026 与标识符之间的空格。跟踪处理此语法的 parser 入口点,并验证两种形式都能被接受,同时不会阻止文件其余部分被解析。
由索引模型根据 Issue 内容生成。
描述
CodeQL's Ruby breaks parsing breaks for the following code:
sorted_array = array.sort(& custom_sorts[params[:sortby]])
I understand that the following should be how this is written, but sometimes people put weird syntax in and it shouldn't break a whole file being parsed:
sorted_array = array.sort(&custom_sorts[params[:sortby]])
- 主要语言
- CodeQL
- 星标
- 10.1k
- 派生
- 2.1k
- 平均合并
- 2 天 11 小时
- 30 天内合并 PR
- 129
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/codeql 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
false-positive
难度 2/5 1-3 小时 新手友好度 70/100
-
False positive 未关闭false-positive
难度 4/5 3-5 天 新手友好度 15/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
EricSpencer00/Resilient#4824 · 1 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
objectionary/jeo-maven-plugin#1758 ·
-
generics
难度 2/5 1-3 小时 新手友好度 82/100
-
mlir
难度 2/5 1-3 小时 新手友好度 84/100
llvm/llvm-project#224908 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100