We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f6e56c commit 5489bb9Copy full SHA for 5489bb9
cpp/ql/src/semmle/code/cpp/models/implementations/Printf.qll
@@ -67,17 +67,23 @@ class Sprintf extends FormattingFunction {
67
this instanceof TopLevelFunction and
68
(
69
// sprintf(dst, format, args...)
70
- hasGlobalOrStdName("sprintf") or
+ hasGlobalOrStdName("sprintf")
71
+ or
72
// _sprintf_l(dst, format, locale, args...)
- hasGlobalName("_sprintf_l") or
73
+ hasGlobalName("_sprintf_l")
74
75
// __swprintf_l(dst, format, locale, args...)
- hasGlobalName("__swprintf_l") or
76
+ hasGlobalName("__swprintf_l")
77
78
// wsprintf(dst, format, args...)
- hasGlobalOrStdName("wsprintf") or
79
+ hasGlobalOrStdName("wsprintf")
80
81
// g_strdup_printf(format, ...)
- hasGlobalName("g_strdup_printf") or
82
+ hasGlobalName("g_strdup_printf")
83
84
// g_sprintf(dst, format, ...)
- hasGlobalName("g_sprintf") or
85
+ hasGlobalName("g_sprintf")
86
87
// __builtin___sprintf_chk(dst, flag, os, format, ...)
88
hasGlobalName("__builtin___sprintf_chk")
89
) and
0 commit comments