aquasecurity / libbpfgo

eBPF library for Go. Powered by libbpf.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CompareKernelRelease helper should correct format

grantseltzer opened this issue · comments

The CompareKernelRelease helper function assumes that the passed kernel version formats are correct (i.e. x.y.z) which is unsafe because it can cause index out of bounds runtime errors, and is inconvenient in case something like 1.0 is passed.

Closed by #232