[...]
>
>> @@ -635,13 +637,25 @@ virStorageFileMatchesVersion(int format,
>> if (fileTypeInfo[format].versionOffset == -2)
>> return true;
So you would like to see:
if (fileTypeInfo[format].versionSize == 0)
return false;
Sent before I thought about this option:
/* A positive versionOffset, requires using a valid versionSize */
if (fileTypeInfo[format].versionSize != 2 &&
fileTypeInfo[format].versionSize != 4)
return false;
John