Merge pull request #10163 from d10c/missing-check-scanf-squashed

C++: New Query: missing return-value check for scanf-like functions
This commit is contained in:
Nora Dimitrijević
2022-09-01 23:43:21 +02:00
committed by GitHub
8 changed files with 623 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
---
category: newQuery
---
* Added a new medium-precision query, `cpp/missing-check-scanf`, which detects `scanf` output variables that are used without a proper return-value check to see that they were actually written. A variation of this query was originally contributed as an [experimental query by @ihsinme](https://github.com/github/codeql/pull/8246).