@@ -265,6 +265,28 @@ public class FileValidator
265265 {
266266 new byte [ ] { 0x47 , 0x49 , 0x46 , 0x38 } , // GIF8
267267 }
268+ } ,
269+ new FileDefinition
270+ {
271+ FileType = FileExtensions . Tif ,
272+ ValidSignatures = new List < byte [ ] >
273+ {
274+ new byte [ ] { 0x49 , 0x49 , 0x2A , 0x00 } , // II*␀ (Intel byte order)
275+ new byte [ ] { 0x4D , 0x4D , 0x00 , 0x2A } , // MM␀* (Motorola byte order)
276+ new byte [ ] { 0x49 , 0x49 , 0x2B , 0x00 } , // II+␀ (BigTIFF, Intel byte order)
277+ new byte [ ] { 0x4D , 0x4D , 0x00 , 0x2B } // MM␀+ (BigTIFF, Motorola byte order)
278+ }
279+ } ,
280+ new FileDefinition
281+ {
282+ FileType = FileExtensions . Tiff ,
283+ ValidSignatures = new List < byte [ ] >
284+ {
285+ new byte [ ] { 0x49 , 0x49 , 0x2A , 0x00 } , // II*␀ (Intel byte order)
286+ new byte [ ] { 0x4D , 0x4D , 0x00 , 0x2A } , // MM␀* (Motorola byte order)
287+ new byte [ ] { 0x49 , 0x49 , 0x2B , 0x00 } , // II+␀ (BigTIFF, Intel byte order)
288+ new byte [ ] { 0x4D , 0x4D , 0x00 , 0x2B } // MM␀+ (BigTIFF, Motorola byte order)
289+ }
268290 }
269291 } ;
270292
0 commit comments