Instead of using a homegrown solution to get the auxv from a process, instead
use the OS-provided sysctl to get the needed data. This allows the same code to
be used for both 32-bit and 64-bit processes on a 64-bit host.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM assuming the tests pass. I suspect it was written before the sysctl was readily available, but it should now be available on releases of interest.
Comment Actions
Don't read to the stack, then copy to the heap. Instead, read directly to the heap, to a properly sized buffer.
source/Host/freebsd/Host.cpp | ||
---|---|---|
293 | space after * |
space after *