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/i386/linux | |
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/i386/linux')
-rw-r--r-- | sys/i386/linux/linux_sysvec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index 3cc8f55..5972a57 100644 --- a/sys/i386/linux/linux_sysvec.c +++ b/sys/i386/linux/linux_sysvec.c @@ -769,7 +769,7 @@ linux_aout_coredump(struct thread *td, struct vnode *vp, off_t limit) round_page(ctob(vm->vm_ssize)), (off_t)ctob(uarea_pages + kstack_pages) + ctob(vm->vm_dsize), UIO_USERSPACE, - IO_UNIT | IO_DIRECT, cred, NOCRED, (int *) NULL, td); + IO_UNIT | IO_DIRECT, cred, NOCRED, NULL, td); return (error); } /* |