mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 11:02:44 +00:00
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.
This commit is contained in:
parent
db106eff39
commit
c18092b2fb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82208
@ -211,7 +211,7 @@ cd9660_open(path, f)
|
|||||||
((char *) dp + isonum_711(dp->length));
|
((char *) dp + isonum_711(dp->length));
|
||||||
off += isonum_711(dp->length);
|
off += isonum_711(dp->length);
|
||||||
}
|
}
|
||||||
if (off == dsize) {
|
if (off >= dsize) {
|
||||||
rc = ENOENT;
|
rc = ENOENT;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user