Files
codeql/cpp/ql/test/library-tests/scanf/scanfFunctionCall.ql
2018-08-02 17:53:23 +01:00

6 lines
253 B
Plaintext

import semmle.code.cpp.commons.Scanf
from ScanfFunctionCall sfc, string wide
where if sfc.isWideCharDefault() then wide = "wide" else wide = "non-wide"
select sfc, sum(sfc.getInputParameterIndex()), sfc.getFormatParameterIndex(), sfc.getFormat(), wide