github / github/codeql

Python: False positive: Tuple Destructuring

オープン
#17,008 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
false-positive
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

**Description of the false positive**

CodeQL incorrectly identifies dataflow occurring from a constant value when a tuple is being destructured.

**Code samples or links to source code**
![Screenshot 2024-07-17 at 1 17 28 PM](https://github.com/user-attachments/assets/fcd5cfd8-4a3d-4f09-b9a3-0af5a802b67b)

Here's it's very clear that `status` will always be `200` on this data flow path, but CodeQL incorrectly believes there is dataflow from the `res.json()` to the `status` variable.

https://github.com/Chainguard-Wolfi-Bites-Back/istio__istio/security/code-scanning/5

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

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

評価

この issue はまだ評価されていません。

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

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