diff options
author | 1999-04-25 00:36:46 +0000 | |
---|---|---|
committer | 1999-04-25 00:36:46 +0000 | |
commit | a1863f452ea4865118ca8e3cb3b3c8e46d48a9e3 (patch) | |
tree | 44b0a468bea0151d699c483d08b5ed6f3ccc3f9e | |
parent | Make ttystat() work correctly with strings that are not NUL-terminated. (diff) | |
download | wireguard-openbsd-a1863f452ea4865118ca8e3cb3b3c8e46d48a9e3.tar.xz wireguard-openbsd-a1863f452ea4865118ca8e3cb3b3c8e46d48a9e3.zip |
Reading large file from ext2fs caused vm_fault; gluk@ecsc.mipt.ru
Approved by csapuntz@openbsd.org
-rw-r--r-- | sys/ufs/ext2fs/ext2fs_bmap.c | 4 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_bmap.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_bmap.c b/sys/ufs/ext2fs/ext2fs_bmap.c index d64eddf39d6..ce8dfa15968 100644 --- a/sys/ufs/ext2fs/ext2fs_bmap.c +++ b/sys/ufs/ext2fs/ext2fs_bmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_bmap.c,v 1.3 1997/06/12 21:09:31 downsj Exp $ */ +/* $OpenBSD: ext2fs_bmap.c,v 1.4 1999/04/25 00:36:46 millert Exp $ */ /* $NetBSD: ext2fs_bmap.c,v 1.1 1997/06/11 09:33:46 bouyer Exp $ */ /* @@ -120,7 +120,7 @@ ext2fs_bmaparray(vp, bn, bnp, ap, nump, runp) struct ufsmount *ump; struct mount *mp; struct vnode *devvp; - struct indir a[NIADDR], *xap; + struct indir a[NIADDR+1], *xap; daddr_t daddr; long metalbn; int error, maxrun = 0, num; diff --git a/sys/ufs/ufs/ufs_bmap.c b/sys/ufs/ufs/ufs_bmap.c index f6c59c9352c..48ea8f7d41f 100644 --- a/sys/ufs/ufs/ufs_bmap.c +++ b/sys/ufs/ufs/ufs_bmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufs_bmap.c,v 1.4 1997/05/30 08:35:02 downsj Exp $ */ +/* $OpenBSD: ufs_bmap.c,v 1.5 1999/04/25 00:36:47 millert Exp $ */ /* $NetBSD: ufs_bmap.c,v 1.3 1996/02/09 22:36:00 christos Exp $ */ /* @@ -114,7 +114,7 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp) struct ufsmount *ump; struct mount *mp; struct vnode *devvp; - struct indir a[NIADDR], *xap; + struct indir a[NIADDR+1], *xap; daddr_t daddr; long metalbn; #ifdef TRACE |