mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
6 lines
253 B
Plaintext
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
|