We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 90faab4 + 01cbd2f commit a0d2213Copy full SHA for a0d2213
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