diff options
author | gallatin <gallatin@FreeBSD.org> | 2001-08-23 17:08:26 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2001-08-23 17:08:26 +0000 |
commit | df8be8c104e1c99b8198305e3a574ccfa40d04cf (patch) | |
tree | 3d9a46386d80c89401f9d7e1416902e955eacd1b /lib | |
parent | 1dabef88453571cb8dd7bd9fe90813f7dfb937a7 (diff) | |
download | FreeBSD-src-df8be8c104e1c99b8198305e3a574ccfa40d04cf.zip FreeBSD-src-df8be8c104e1c99b8198305e3a574ccfa40d04cf.tar.gz |
Bail if we go beyond the directory size, not just if we hit it.
Certain ISO fs's (like the one for 4.4-RC1 disc1 on alpha)
trigger this, and we end up opening a null file name. This causes us to get
a false match for "kernel.ko" when it does not exist.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libstand/cd9660.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/cd9660.c b/lib/libstand/cd9660.c index 87ef6e9..da34ab9 100644 --- a/lib/libstand/cd9660.c +++ b/lib/libstand/cd9660.c @@ -211,7 +211,7 @@ cd9660_open(path, f) ((char *) dp + isonum_711(dp->length)); off += isonum_711(dp->length); } - if (off == dsize) { + if (off >= dsize) { rc = ENOENT; goto out; } |