diff options
author | tjr <tjr@FreeBSD.org> | 2004-06-05 02:18:28 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-06-05 02:18:28 +0000 |
commit | 02a7d287a2f48d1a130773559be6fe4b5a9250c0 (patch) | |
tree | d9640fefa0e77a55f0655441d7ced9ece3f32a82 /sys/compat/pecoff | |
parent | 445b7fecaa7b9b3cef0f344d22aa7304b6c70f91 (diff) | |
download | FreeBSD-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/pecoff')
-rw-r--r-- | sys/compat/pecoff/imgact_pecoff.c | 4 |
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); } |