We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90faab4 commit 01cbd2fCopy full SHA for 01cbd2f
cpp/ql/src/Critical/ScanfChecks.qll
@@ -37,7 +37,7 @@ private string getEofValue() {
37
*/
38
private predicate checkedForEof(ScanfFunctionCall call) {
39
exists(IRGuardCondition gc |
40
- exists(Instruction i | i.getUnconvertedResultExpression() = call |
+ exists(CallInstruction i | i.getUnconvertedResultExpression() = call |
41
exists(int val | gc.comparesEq(valueNumber(i).getAUse(), val, _, _) |
42
// call == EOF
43
val = getEofValue().toInt()
0 commit comments