Closed rahulguptajss closed 2 months ago
cmd/poller/plugin/labelagent/parse_rules.go:534:26: G115: integer overflow conversion uint64 -> uint8 (gosec) r.defaultValue = uint8(v) ^ cmd/poller/plugin/labelagent/parse_rules.go:580:26: G115: integer overflow conversion uint64 -> uint8 (gosec) r.defaultValue = uint8(v) ^ cmd/poller/collector/asup.go:421:20: G115: integer overflow conversion int -> uint8 (gosec) return arch, uint8(cpuCount)
cmd/poller/plugin/labelagent/parse_rules.go:534:26: G115: integer overflow conversion uint64 -> uint8 (gosec) r.defaultValue = uint8(v) ^ cmd/poller/plugin/labelagent/parse_rules.go:580:26: G115: integer overflow conversion uint64 -> uint8 (gosec) r.defaultValue = uint8(v) ^ cmd/poller/collector/asup.go:421:20: G115: integer overflow conversion int -> uint8 (gosec) return arch, uint8(cpuCount)