lvalue is a signed long int, but psinfo.pr_size is size_t (which is unsigned).
Because of this, lvalue wraps when pr_size is > 2GB and the return for the memory is 0
This simple patch should resolve this issue.
Because of this, lvalue wraps when pr_size is > 2GB and the return for the memory is 0
This simple patch should resolve this issue.