libmemstat uses kvm to dig into kernel memory to get malloc stats. However, the way stats are kept is not versioned in any way and the recent change results in garbage results or crashes
e.g. using vmstat -m -M /dev/mem
The change simply updates the lib to match the kernel.
the issue was reported by yuripv