mirror of https://github.com/shirou/gopsutil
fix host.Info() panic if /etc/debian_version is empty
The ReadLines helper function doesn't guarantee that the length of lines is non-zero or that the lines have contents. Most callers include a check for length but this was missing for version fingerprinting on Debian if `/etc/debian_version` was empty, leading to a panic.pull/822/head
parent
bcf28f0c37
commit
c69ef749eb
Loading…
Reference in New Issue