Skip to content

Commit

Permalink
Merge pull request github#15129 from MathiasVP/fix-joins-in-wrong-typ…
Browse files Browse the repository at this point in the history
…e-format-argument

C++: Fix joins in `cpp/wrong-type-format-argument`
  • Loading branch information
MathiasVP authored Dec 18, 2023
2 parents d8fdba0 + 3897bef commit 50b754b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
import semmle.code.cpp.models.interfaces.ArrayFunction
import semmle.code.cpp.models.interfaces.Taint

pragma[nomagic]
private Type stripTopLevelSpecifiersOnly(Type t) {
result = stripTopLevelSpecifiersOnly(t.(SpecifiedType).getBaseType())
result = stripTopLevelSpecifiersOnly(pragma[only_bind_out](t.(SpecifiedType).getBaseType()))
or
result = t and
not t instanceof SpecifiedType
Expand Down

0 comments on commit 50b754b

Please sign in to comment.