Fail on StuffIt compressed images.

This commit is contained in:
2016-09-30 04:34:45 +01:00
parent b0a7b2e7ea
commit 256304bfa2
2 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2016-09-30 Natalia Portillo <claunia@claunia.com>
* NDIF.cs: Fail on StuffIt compressed images.
2016-09-30 Natalia Portillo <claunia@claunia.com> 2016-09-30 Natalia Portillo <claunia@claunia.com>
* CHD.cs: * CHD.cs:

View File

@@ -341,6 +341,8 @@ namespace DiscImageChef.DiscImages
throw new ImageNotSupportedException("Chunks compressed with LZH are not yet supported."); throw new ImageNotSupportedException("Chunks compressed with LZH are not yet supported.");
if((bChnk.type == ChunkType_ADC)) if((bChnk.type == ChunkType_ADC))
throw new ImageNotSupportedException("Chunks compressed with ADC are not yet supported."); throw new ImageNotSupportedException("Chunks compressed with ADC are not yet supported.");
if((bChnk.type == ChunkType_StuffIt))
throw new ImageNotSupportedException("Chunks compressed with StuffIt! are not yet supported.");
// TODO: Handle compressed chunks // TODO: Handle compressed chunks
if((bChnk.type > ChunkType_Copy && bChnk.type < ChunkType_KenCode) || if((bChnk.type > ChunkType_Copy && bChnk.type < ChunkType_KenCode) ||