mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Merge pull request #16457 from owen-mc/go/fix-implicitvarargsslice-type
Go: Fix `getType` on `ImplicitVarArgsSlice`
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
---
|
||||
category: minorAnalysis
|
||||
---
|
||||
* Fixed a bug that stopped data flow from being followed through variadic arguments to built-in functions or to functions called using a variable.
|
||||
@@ -455,8 +455,8 @@ module Public {
|
||||
CallNode getCallNode() { result = call }
|
||||
|
||||
override Type getType() {
|
||||
exists(Function f | f = call.getTarget() |
|
||||
result = f.getParameterType(f.getNumParameter() - 1)
|
||||
exists(SignatureType t | t = call.getCall().getCalleeType() |
|
||||
result = t.getParameterType(t.getNumParameter() - 1)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user