mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix overflow on SecureDigital CSD v2.0 size calculation.
This commit is contained in:
@@ -359,7 +359,7 @@ namespace DiscImageChef.Decoders.SecureDigital
|
||||
else
|
||||
{
|
||||
sb.AppendFormat("\tDevice has {0} blocks", (csd.Size + 1) * 1024).AppendLine();
|
||||
result = (csd.Size + 1) * 1024 * 512;
|
||||
result = ((ulong)csd.Size + 1) * 1024 * 512;
|
||||
if(result > 1099511627776)
|
||||
sb.AppendFormat("\tDevice has {0} TiB", result / 1099511627776.0).AppendLine();
|
||||
else if(result > 1073741824)
|
||||
|
||||
Reference in New Issue
Block a user