mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add detection of UDIF's LZMA chunks.
This commit is contained in:
@@ -53,6 +53,7 @@ namespace Aaru.DiscImages
|
||||
const uint CHUNK_TYPE_ZLIB = 0x80000005;
|
||||
const uint CHUNK_TYPE_BZIP = 0x80000006;
|
||||
const uint CHUNK_TYPE_LZFSE = 0x80000007;
|
||||
const uint CHUNK_TYPE_LZMA = 0x80000008;
|
||||
const uint CHUNK_TYPE_COMMNT = 0x7FFFFFFE;
|
||||
const uint CHUNK_TYPE_END = 0xFFFFFFFF;
|
||||
|
||||
|
||||
@@ -350,10 +350,13 @@ namespace Aaru.DiscImages
|
||||
case CHUNK_TYPE_LZFSE:
|
||||
throw new
|
||||
ImageNotSupportedException("Chunks compressed with lzfse are not yet supported.");
|
||||
case CHUNK_TYPE_LZMA:
|
||||
throw new
|
||||
ImageNotSupportedException("Chunks compressed with lzma are not yet supported.");
|
||||
}
|
||||
|
||||
if((bChnk.type > CHUNK_TYPE_NOCOPY && bChnk.type < CHUNK_TYPE_COMMNT) ||
|
||||
(bChnk.type > CHUNK_TYPE_LZFSE && bChnk.type < CHUNK_TYPE_END))
|
||||
(bChnk.type > CHUNK_TYPE_LZMA && bChnk.type < CHUNK_TYPE_END))
|
||||
throw new ImageNotSupportedException($"Unsupported chunk type 0x{bChnk.type:X8} found");
|
||||
|
||||
if(bChnk.sectors > 0)
|
||||
|
||||
Reference in New Issue
Block a user