diff --git a/lib/libstand/cd9660.c b/lib/libstand/cd9660.c index 87ef6e92a005..da34ab915a64 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; }