File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
cpp/ql/lib/semmle/code/cpp/commons Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -168,15 +168,15 @@ private predicate callsVariadicFormatter(
168
168
) {
169
169
// calls a variadic formatter with `formatParamIndex`, `outputParamIndex` linked
170
170
exists ( FunctionCall fc , int format , int output |
171
- variadicFormatter ( fc .getTarget ( ) , type , format , output ) and
171
+ variadicFormatter ( pragma [ only_bind_into ] ( fc .getTarget ( ) ) , type , format , output ) and
172
172
fc .getEnclosingFunction ( ) = f and
173
173
fc .getArgument ( format ) = f .getParameter ( formatParamIndex ) .getAnAccess ( ) and
174
174
fc .getArgument ( output ) = f .getParameter ( outputParamIndex ) .getAnAccess ( )
175
175
)
176
176
or
177
177
// calls a variadic formatter with only `formatParamIndex` linked
178
178
exists ( FunctionCall fc , string calledType , int format , int output |
179
- variadicFormatter ( fc .getTarget ( ) , calledType , format , output ) and
179
+ variadicFormatter ( pragma [ only_bind_into ] ( fc .getTarget ( ) ) , calledType , format , output ) and
180
180
fc .getEnclosingFunction ( ) = f and
181
181
fc .getArgument ( format ) = f .getParameter ( formatParamIndex ) .getAnAccess ( ) and
182
182
not fc .getArgument ( output ) = f .getParameter ( _) .getAnAccess ( ) and
You can’t perform that action at this time.
0 commit comments