KBNLresearch / isolyzer

Verify size of ISO 9660 image against Volume Descriptor fields
Other
44 stars 7 forks source link

Behaviour if no file system can be found #8

Closed bitsgalore closed 7 years ago

bitsgalore commented 7 years ago

Example:

https://archive.org/details/Apple_Chronicle_CDWM1023150Apple_Computer1992

Isolyzer result:

<?xml version="1.0" ?>
<isolyzer>
    <image>
        <fileInfo>
            <fileName>Apple Chronicle (CDWM1023150)(Apple Computer)(1992).iso</fileName>
            <filePath>/home/johan/testudf/Apple Chronicle (CDWM1023150)(Apple Computer)(1992).iso</filePath>
            <fileSizeInBytes>768445440</fileSizeInBytes>
            <fileLastModified>Wed Jun 28 17:01:23 2017</fileLastModified>
        </fileInfo>
        <statusInfo>
            <success>True</success>
        </statusInfo>
        <tests>
            <containsISO9660Signature>False</containsISO9660Signature>
            <containsApplePartitionMap>False</containsApplePartitionMap>
            <containsAppleHFSHeader>False</containsAppleHFSHeader>
            <containsAppleMasterDirectoryBlock>False</containsAppleMasterDirectoryBlock>
            <containsUDF>False</containsUDF>
            <sizeExpected>0</sizeExpected>
            <sizeActual>768445440</sizeActual>
            <sizeDifference>768445440</sizeDifference>
            <sizeAsExpected>False</sizeAsExpected>
            <smallerThanExpected>False</smallerThanExpected>
        </tests>
        <properties/>
    </image>
</isolyzer>

Inspection with Hex editor shows that image is corrupted. Maybe isolyzer should give at least some indication that something is wrong (i.e. that no file system was found whatsoever).

bitsgalore commented 7 years ago

Added containsKnownFileSystem field to tests:

https://github.com/KBNLresearch/isolyzer/commit/93d26a58e9f454ede3c6af15c4611f57ea7c92e0