adamhathcock / sharpcompress

SharpCompress is a fully managed C# library to deal with many compression types and formats.
MIT License
2.29k stars 482 forks source link

Check crc on tar header #855

Closed Erior closed 4 months ago

Erior commented 4 months ago

837

We could use the CRC for checking validation of the header, however it would seem the Tar.Empty.tar test case is invalid

Erior commented 4 months ago

The last could actually be change to return crc == chk1 || crc == chk2 ... instead of the if... if you prefere that I can change

adamhathcock commented 4 months ago

Thanks!