github-vet / github-vet/rangeloop-pointer-findings
qlova/uct: targets/java/java.go; 12 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [qlova/uct](https://www.github.com/qlova/uct) at [targets/java/java.go](https://github.com/qlova/uct/blob/a184b3a6ecc30d3c4294fbae3b6bd9823119666f/targets/java/java.go#L86-L97)
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 value was used in a composite literal at line 89
[Click here to see the code in its original context.](https://github.com/qlova/uct/blob/a184b3a6ecc30d3c4294fbae3b6bd9823119666f/targets/java/java.go#L86-L97)
Click here to show the 12 line(s) of Go which triggered the analyzer.
```go
for i, value := range uc.Data {
var r big.Int
if value.Int64() > 127 {
r.Sub(&value, big.NewInt(256))
} else {
r = value
}
uc.WriteString(r.String())
if i < len(uc.Data)-1 {
uc.WriteString(",")
}
}
```
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: a184b3a6ecc30d3c4294fbae3b6bd9823119666f
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.