summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2006-03-25 01:14:20 +0000
committerpeter <peter@FreeBSD.org>2006-03-25 01:14:20 +0000
commitbf1d6ea4cd19b0a854f1f9465094e14e04082b08 (patch)
treea59b74d8256339f5c4a72c635fca84c92b92f273 /lib/libthr
parent2c8d49d5d1a8385d19090b2ac127b5099ac87ca5 (diff)
downloadFreeBSD-src-bf1d6ea4cd19b0a854f1f9465094e14e04082b08.zip
FreeBSD-src-bf1d6ea4cd19b0a854f1f9465094e14e04082b08.tar.gz
Make gcore(1) 64 bit safe. It was trying to parse the /proc/*/map file
using sscanf and truncating the start/end entries by writing them with a 32 bit int descriptor (%x). The upper bytes of the 64 bit vm_offset_t variables (for little endian machines) were uninitialized. For big endian machines, things would have been worse because it was storing the 32 bit value in the upper half of the 64 bit variable. I've changed it to use %lx and long types. That should work on all our platforms.
Diffstat (limited to 'lib/libthr')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud