github-vet / github-vet/rangeloop-pointer-findings
free5gc/free5gc-stage-3: src/pcf/pcf_producer/pcf_ampolicy.go; 7 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [free5gc/free5gc-stage-3](https://www.github.com/free5gc/free5gc-stage-3) at [src/pcf/pcf_producer/pcf_ampolicy.go](https://github.com/free5gc/free5gc-stage-3/blob/f76e5753ff8cb73d887cafde326020bb0a800d92/src/pcf/pcf_producer/pcf_ampolicy.go#L213-L219)
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.
> reference to statusSubsData is reassigned at line 216
[Click here to see the code in its original context.](https://github.com/free5gc/free5gc-stage-3/blob/f76e5753ff8cb73d887cafde326020bb0a800d92/src/pcf/pcf_producer/pcf_ampolicy.go#L213-L219)
Click here to show the 7 line(s) of Go which triggered the analyzer.
```go
for _, statusSubsData := range pcfSelf.AMFStatusSubsData {
for _, guami := range statusSubsData.GuamiList {
if reflect.DeepEqual(guami, request.Guami) {
amPolicy.AmfStatusChangeSubscription = &statusSubsData
}
}
}
```
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: f76e5753ff8cb73d887cafde326020bb0a800d92
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.