
24 Jun
2016
24 Jun
'16
3:02 p.m.
[...]
@@ -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