Inconsistent highlight color for casts

オープン
#1,194 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript, vscode

調査の方向性

509a3493b6b1b742bc5408c9f38e9f423b727174 の commit で ql/cpp/ql/src/Security/CWE/CWE-078/ExecTainted.ql を開き、2 つの MergedPathNode キャストを比較して問題を再現します。VS Code 拡張機能でこれらのキャストの構文ハイライト処理を追跡します。両方の出現箇所が同じ色になることが完了の条件です。

索引モデルが issue の本文から書いたものです。

説明

bug VSCode

Describe the bug
Casts are not consistently colored. Sometimes they are green-ish and sometimes blue-ish.

Version
The CodeQL and VS Code version in which the bug occurs.

CodeQL extension version: 1.6.0
CodeQL CLI version: 2.8.2
Platform: darwin arm64

Version: 1.65.0 (Universal)
Commit: b5205cc8eb4fbaa726835538cd82372cc0222d43
Date: 2022-03-02T11:11:20.886Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin arm64 21.3.0

To reproduce

  1. Open ql/cpp/ql/src/Security/CWE/CWE-078/ExecTainted.ql from the CodeQL repo (current commit ID 509a3493b6b1b742bc5408c9f38e9f423b727174)
  2. Scroll to the bottom
  3. In the following line
    select sinkAsArgumentIndirection(sinkNode.getNode()), TPathNode1(sourceNode).(MergedPathNode), TPathNode2(sinkNode).(MergedPathNode),
    
    the first occurrence (MergedPathNode) is green-ish and the second blue-ish.

Expected behavior
Consistent coloring of casts.

Additional context

Screenshot 2022-03-08 at 10 41 03

主要言語
TypeScript
スター
539
フォーク
240
平均マージ
2日 6時間
マージ済み PR(30日)
29

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/vscode-codeql のほかの issue

github/vscode-codeql の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。