mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Corrected check of ISO9660 SA length/offset.
This commit is contained in:
@@ -314,7 +314,7 @@ namespace DiscImageChef.Filesystems.ISO9660
|
||||
}
|
||||
}
|
||||
|
||||
if(sa_off >= sa_len)
|
||||
if(sa_off + 2 >= sa_len)
|
||||
break;
|
||||
|
||||
ushort nextSignature = BigEndianBitConverter.ToUInt16(sa, sa_off);
|
||||
@@ -360,7 +360,7 @@ namespace DiscImageChef.Filesystems.ISO9660
|
||||
sa_off += sa[sa_off + 2];
|
||||
noneFound = false;
|
||||
|
||||
while(sa_off < sa_len)
|
||||
while(sa_off + 2 < sa_len)
|
||||
{
|
||||
nextSignature = BigEndianBitConverter.ToUInt16(sa, sa_off);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user