Skip to content

Commit 50b754b

Browse files
authored
Merge pull request #15129 from MathiasVP/fix-joins-in-wrong-type-format-argument
C++: Fix joins in `cpp/wrong-type-format-argument`
2 parents d8fdba0 + 3897bef commit 50b754b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
import semmle.code.cpp.models.interfaces.ArrayFunction
1010
import semmle.code.cpp.models.interfaces.Taint
1111

12+
pragma[nomagic]
1213
private Type stripTopLevelSpecifiersOnly(Type t) {
13-
result = stripTopLevelSpecifiersOnly(t.(SpecifiedType).getBaseType())
14+
result = stripTopLevelSpecifiersOnly(pragma[only_bind_out](t.(SpecifiedType).getBaseType()))
1415
or
1516
result = t and
1617
not t instanceof SpecifiedType

0 commit comments

Comments
 (0)