summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-06-05 02:18:28 +0000
committertjr <tjr@FreeBSD.org>2004-06-05 02:18:28 +0000
commit02a7d287a2f48d1a130773559be6fe4b5a9250c0 (patch)
treed9640fefa0e77a55f0655441d7ced9ece3f32a82 /sys/compat
parent445b7fecaa7b9b3cef0f344d22aa7304b6c70f91 (diff)
downloadFreeBSD-src-02a7d287a2f48d1a130773559be6fe4b5a9250c0.zip
FreeBSD-src-02a7d287a2f48d1a130773559be6fe4b5a9250c0.tar.gz
Change the types of vn_rdwr_inchunks()'s len and aresid arguments to
size_t and size_t *, respectively. Update callers for the new interface. This is a better fix for overflows that occurred when dumping segments larger than 2GB to core files.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/pecoff/imgact_pecoff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/pecoff/imgact_pecoff.c b/sys/compat/pecoff/imgact_pecoff.c
index 1049d39..6a91b13 100644
--- a/sys/compat/pecoff/imgact_pecoff.c
+++ b/sys/compat/pecoff/imgact_pecoff.c
@@ -214,14 +214,14 @@ pecoff_coredump(register struct thread * td, register struct vnode * vp,
error = vn_rdwr_inchunks(UIO_WRITE, vp, vm->vm_daddr,
(int)ctob(vm->vm_dsize),
(off_t)ctob((uarea_pages + kstack_pages)),
- UIO_USERSPACE, IO_UNIT, cred, NOCRED, (int *)NULL, td);
+ UIO_USERSPACE, IO_UNIT, cred, NOCRED, NULL, td);
if (error == 0)
error = vn_rdwr_inchunks(UIO_WRITE, vp,
(caddr_t)trunc_page(USRSTACK - ctob(vm->vm_ssize)),
round_page(ctob(vm->vm_ssize)),
(off_t)ctob((uarea_pages + kstack_pages)) +
ctob(vm->vm_dsize),
- UIO_USERSPACE, IO_UNIT, cred, NOCRED, (int *)NULL, td);
+ UIO_USERSPACE, IO_UNIT, cred, NOCRED, NULL, td);
return (error);
}
OpenPOWER on IntegriCloud