mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
21 lines
450 B
C++
21 lines
450 B
C++
// semmle-extractor-options: --microsoft --edg --target --edg win64
|
|
/** standard library functions */
|
|
typedef __int32 int32_t;
|
|
typedef __int64 int64_t;
|
|
|
|
int sscanf(const char *s, const char *format, ...);
|
|
int printf(const char *format, ...);
|
|
|
|
/** test program */
|
|
|
|
void test()
|
|
{
|
|
// I64 is a Microsoft specific size prefix
|
|
{
|
|
__int64 i64;
|
|
|
|
sscanf("9999999999", "%I64i", &i64); // [MISSING FROM SCANFFORMATLITERAL]
|
|
printf("= %I64i\n", i64);
|
|
}
|
|
}
|