github-vet / github-vet/rangeloop-pointer-findings
radondb/radon: src/planner/builder/project.go; 17 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [radondb/radon](https://www.github.com/radondb/radon) at [src/planner/builder/project.go](https://github.com/radondb/radon/blob/3885e5acfe135e1b414dabc6c86e78f3bac4b5eb/src/planner/builder/project.go#L341-L357)
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 tuple is reassigned at line 353
[Click here to see the code in its original context.](https://github.com/radondb/radon/blob/3885e5acfe135e1b414dabc6c86e78f3bac4b5eb/src/planner/builder/project.go#L341-L357)
Click here to show the 17 line(s) of Go which triggered the analyzer.
```go
for _, tuple := range fields {
find := false
if table == "" && strings.EqualFold(field, tuple.alias) {
find = true
} else {
if tuple.isCol {
if strings.EqualFold(field, tuple.field) && (table == "" || table == tuple.info.referTables[0]) {
find = true
}
}
}
if find {
group = &tuple
groupTuples = append(groupTuples, *group)
break
}
}
```
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: 3885e5acfe135e1b414dabc6c86e78f3bac4b5eb
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.