Skip to content

Commit

Permalink
Fix code scanning alert #29: Incorrect conversion between integer types
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 8e4c3c3 commit e54dda1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgo/go/net/http/pprof/pprof.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func Symbol(w http.ResponseWriter, r *http.Request) {
}
pc, _ := strconv.ParseUint(string(word), 0, 64)
if pc != 0 {
if pc > ^uint64(0)>>1 {
if pc > ^uint64(uintptr(0)) {
fmt.Fprintf(&buf, "address out of range: %v\n", pc)
continue
}
Expand Down

0 comments on commit e54dda1

Please sign in to comment.