github-vet / github-vet/rangeloop-pointer-findings
gardener/gardener-resource-manager: pkg/controller/secret/reconciler.go; 9 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [gardener/gardener-resource-manager](https://www.github.com/gardener/gardener-resource-manager) at [pkg/controller/secret/reconciler.go](https://github.com/gardener/gardener-resource-manager/blob/12577239809b35ac7f5e068f5512a1639a234f8b/pkg/controller/secret/reconciler.go#L82-L90)
Below is the message reported by the analyzer for this snippet of code. Beware that the analyzer only reports the first issue it finds, so please do not limit your consideration to the contents of the below message.
>
[Click here to see the code in its original context.](https://github.com/gardener/gardener-resource-manager/blob/12577239809b35ac7f5e068f5512a1639a234f8b/pkg/controller/secret/reconciler.go#L82-L90)
Click here to show the 9 line(s) of Go which triggered the analyzer.
```go
for _, resource := range resourceList.Items {
for _, ref := range resource.Spec.SecretRefs {
// check if we are responsible for this MR, class might have changed, then we need to remove our finalizer
if ref.Name == secret.Name && r.ClassFilter.Responsible(&resource) {
secretIsReferenced = true
break
}
}
}
```
Click here to show extra information the analyzer produced.
```
No path was found through the callgraph that could lead to a function which writes a pointer argument.
No path was found through the callgraph that could lead to a function which passes a pointer to third-party code.
root signature {Responsible 1} was not found in the callgraph; reference was passed directly to third-party code
```
Leave a reaction on this issue to contribute to the project by classifying this instance as a **Bug** :-1:, **Mitigated** :+1:, or **Desirable Behavior** :rocket:
See the descriptions of the classifications [here](https://github.com/github-vet/rangeclosure-findings#how-can-i-help) for more information.
commit ID: 12577239809b35ac7f5e068f5512a1639a234f8b
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.