libkvm - Fix seg-fault in ps output when loading a process's argv
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 1 Dec 2011 23:53:24 +0000 (15:53 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 1 Dec 2011 23:53:24 +0000 (15:53 -0800)
commitedec16bab2351da1b5e91ea64c7d7155562cf20d
tree88e01054bd8293e7ef67fa4f9479d976131b0aa7
parentead16d5b09ee7d1f71ba3f28ae0a220c81e365fd
libkvm - Fix seg-fault in ps output when loading a process's argv

* An offset calculation used when the string space is relocated by realloc
  was being stored in an 'int' instead of a 'size_t', causing the
  recalculated pointer to go wild.
lib/libkvm/kvm_proc.c