[System.IO.Compression] ZipHelper.DosTimeToDateTime handle empty LastModified fields...
authorSergey Mikolaytis <blasterloremaster@gmail.com>
Tue, 20 Oct 2020 17:37:13 +0000 (20:37 +0300)
committerGitHub <noreply@github.com>
Tue, 20 Oct 2020 17:37:13 +0000 (10:37 -0700)
commit75d9041dbfe474e959ccfc4a74951c9fdcf364fe
tree3a5a3d52b2403393c7afac0e47d0b00e4bb7a0d4
parentdcc49112aa4b03a2347409fb95e837767e2ad49f
[System.IO.Compression] ZipHelper.DosTimeToDateTime handle empty LastModified fields in zip archive entry header without internal exception (#43008)

* [System.IO.Compression] ZipHelper.DosTimeToDateTime handle empty LastModified field without internal exception to improve debugging performance on several zip files opening asynchronously

* [Test][Compression][ZipArhiveEntry] Add unit test to test empty lastModified field in zip entry

* refactor unit test code

* do not use arraypool in tests

* fix test after azure pipeline checks with errors

* fix invalid assert in new test
src/libraries/System.IO.Compression/src/System/IO/Compression/ZipHelper.cs
src/libraries/System.IO.Compression/tests/ZipArchive/zip_ReadTests.cs