diff options
| author | Ian Dowse <iedowse@FreeBSD.org> | 2001-02-04 01:52:11 +0000 |
|---|---|---|
| committer | Ian Dowse <iedowse@FreeBSD.org> | 2001-02-04 01:52:11 +0000 |
| commit | 5d1731a783b688cb06c8db01375d75396ac5d75a (patch) | |
| tree | bfde1a813ba0e828202eddc14225972f176161f7 | |
| parent | 64602637c707aae391347ee750092412f64b28fc (diff) | |
Notes
| -rw-r--r-- | sys/ufs/ufs/ufs_lookup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_lookup.c b/sys/ufs/ufs/ufs_lookup.c index a403e689ce38..1b6f80538575 100644 --- a/sys/ufs/ufs/ufs_lookup.c +++ b/sys/ufs/ufs/ufs_lookup.c @@ -242,7 +242,8 @@ searchloop: * "dirchk" to be true. */ ep = (struct direct *)((char *)bp->b_data + entryoffsetinblock); - if (ep->d_reclen == 0 || + if (ep->d_reclen == 0 || ep->d_reclen > + DIRBLKSIZ - (entryoffsetinblock & (DIRBLKSIZ - 1)) || (dirchk && ufs_dirbadentry(vdp, ep, entryoffsetinblock))) { int i; |
