github / github/codeql

False positive "Uncontrolled data used in path expression" in C code

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

説明

In the evaluation of https://github.com/sysrepo/sysrepo/pull/3353, CodeQL seems to think there is uncontrolled data used in path expression, when there is none.

`This argument to a file access function is derived from and then passed to op_export(file_path), which calls fopen(__filename).`

https://github.com/sysrepo/sysrepo/pull/3353/files

`step_create_input_file` is the function responsible to create a unique filename, and is untouched in this diff, and it seems to be not exploitable.

https://github.com/sysrepo/sysrepo/pull/3353/checks?check_run_id=27465095770

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

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

評価

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

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

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