Skip to content

Commit 8b8f0ca

Browse files
authored
Merge pull request #8479 from geoffw0/widecharperf
C++: Fix expensive getWideCharType().
2 parents 41418e7 + 9ae1ec6 commit 8b8f0ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ abstract class FormattingFunction extends ArrayFunction, TaintFunction {
9292
* snapshots there may be multiple results where we can't tell which is correct for a
9393
* particular function.
9494
*/
95+
pragma[nomagic]
9596
Type getWideCharType() {
9697
result = getFormatCharType() and
9798
result.getSize() > 1

0 commit comments

Comments
 (0)