Skip to content

Commit ff3bedc

Browse files
committed
C++: Fix expensive getWideCharType().
1 parent f53df25 commit ff3bedc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/models/interfaces/FormattingFunction.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ abstract class FormattingFunction extends ArrayFunction, TaintFunction {
9797
result.getSize() > 1
9898
or
9999
not getFormatCharType().getSize() > 1 and
100-
result = getAFormatterWideTypeOrDefault() // may have more than one result
100+
result = pragma[only_bind_out](getAFormatterWideTypeOrDefault()) // may have more than one result
101101
}
102102

103103
/**

0 commit comments

Comments
 (0)