iso9660: Fix Rock Ridge SUSP entry version check

This commit is contained in:
Mintsuki 2026-01-12 12:15:11 +01:00
parent ba2b3194e9
commit 90daf2667f
No known key found for this signature in database
GPG Key ID: 1F3C021BECA23821

View File

@ -191,7 +191,7 @@ static bool load_name(char *buf, size_t limit, struct iso9660_directory_entry *e
int rrnamelen = 0;
unsigned char *nm_entry = NULL;
while ((sysarea_len >= 4) && ((sysarea[3] == 1) || (sysarea[2] == 2))) {
while ((sysarea_len >= 4) && (sysarea[3] == 1)) {
// Validate entry length doesn't exceed remaining sysarea
if (sysarea[2] > sysarea_len) {
break;