We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb9f13e commit e90f505Copy full SHA for e90f505
src/drivers/general/queries/PoolTagIntegral/PoolTagIntegral.ql
@@ -42,8 +42,11 @@ class ValidPoolTag extends Expr {
42
}
43
44
45
-from FunctionCall fc
+from FunctionCall fc, int i
46
where
47
- fc.getTarget() instanceof PoolTypeFunction
48
-
49
-select fc,fc.toString()
+ fc.getTarget() instanceof PoolTypeFunction and
+ fc.getTarget().getParameter(i).getName().matches("Tag") and
+ not fc.getArgument(i) instanceof ValidPoolTag
50
+select fc,
51
+ "A non-CHAR tag was passed into a pool allocation function (actual type: " +
52
+ fc.getArgument(i).getUnderlyingType().getName() + ")"
0 commit comments