retina
retina copied to clipboard
Refactor usages of `unsafe`
There are usages of unsafe which could be made safe https://github.com/microsoft/retina/blob/078d15b3612dc2abacd77b01dc9e6413dd3dbb2a/pkg/utils/utils_linux.go#L41
may be refactored as
func htons(i uint16) uint16 {
b := make([]byte, 2)
binary.BigEndian.PutUint16(b, i)
return binary.BigEndian.Uint16(b)
}
Hi, could you please assign this issue to me?
@Troy-Butler Assigned the issue to you.
This issue is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in 7 days