File tree Expand file tree Collapse file tree
src/libraries/System.Formats.Tar/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 166166 <Uri >https://github.com/dotnet/runtime-assets</Uri >
167167 <Sha >42999f1b16859553727672ef4087742aab7be681</Sha >
168168 </Dependency >
169- <Dependency Name =" System.Formats.Tar.TestData" Version =" 7.0.0-beta.22531 .1" >
169+ <Dependency Name =" System.Formats.Tar.TestData" Version =" 7.0.0-beta.22552 .1" >
170170 <Uri >https://github.com/dotnet/runtime-assets</Uri >
171- <Sha >42999f1b16859553727672ef4087742aab7be681 </Sha >
171+ <Sha >a6e2984f63e3809fcdc607bc88bbf257a6c6b4e4 </Sha >
172172 </Dependency >
173173 <Dependency Name =" System.IO.Compression.TestData" Version =" 7.0.0-beta.22531.1" >
174174 <Uri >https://github.com/dotnet/runtime-assets</Uri >
Original file line number Diff line number Diff line change 145145 <SystemRuntimeNumericsTestDataVersion >7.0.0-beta.22531.1</SystemRuntimeNumericsTestDataVersion >
146146 <SystemComponentModelTypeConverterTestDataVersion >7.0.0-beta.22531.1</SystemComponentModelTypeConverterTestDataVersion >
147147 <SystemDrawingCommonTestDataVersion >7.0.0-beta.22531.1</SystemDrawingCommonTestDataVersion >
148- <SystemFormatsTarTestDataVersion >7.0.0-beta.22531 .1</SystemFormatsTarTestDataVersion >
148+ <SystemFormatsTarTestDataVersion >7.0.0-beta.22552 .1</SystemFormatsTarTestDataVersion >
149149 <SystemIOCompressionTestDataVersion >7.0.0-beta.22531.1</SystemIOCompressionTestDataVersion >
150150 <SystemIOPackagingTestDataVersion >7.0.0-beta.22531.1</SystemIOPackagingTestDataVersion >
151151 <SystemNetTestDataVersion >7.0.0-beta.22531.1</SystemNetTestDataVersion >
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ public async Task ExtractEntry_DockerImageTarWithFileTypeInDirectoriesInMode_Suc
102102 {
103103 using ( TempDirectory root = new TempDirectory ( ) )
104104 {
105- await using MemoryStream archiveStream = GetTarMemoryStream ( CompressionMethod . Uncompressed , "golang_tar " , "docker-hello-world" ) ;
105+ await using MemoryStream archiveStream = GetTarMemoryStream ( CompressionMethod . Uncompressed , "misc " , "docker-hello-world" ) ;
106106 await TarFile . ExtractToDirectoryAsync ( archiveStream , root . Path , overwriteFiles : true ) ;
107107
108108 Assert . True ( File . Exists ( Path . Join ( root . Path , "manifest.json" ) ) ) ;
Original file line number Diff line number Diff line change @@ -241,6 +241,14 @@ public void Throw_SingleExtendedAttributesEntryWithNoActualEntry()
241241 Assert . Throws < EndOfStreamException > ( ( ) => reader . GetNextEntry ( ) ) ;
242242 }
243243
244+ [ Fact ]
245+ public void ReadDataStreamOfGoLangTarGzGnu ( )
246+ {
247+ using MemoryStream archiveStream = GetTarMemoryStream ( CompressionMethod . GZip , "golang_tar" , "pax-bad-hdr-large" ) ;
248+ using GZipStream decompressor = new GZipStream ( archiveStream , CompressionMode . Decompress ) ;
249+ VerifyDataStreamOfTarInternal ( decompressor , copyData : false ) ;
250+ }
251+
244252 [ Theory ]
245253 [ InlineData ( "tar-rs" , "spaces" ) ]
246254 [ InlineData ( "golang_tar" , "v7" ) ]
You can’t perform that action at this time.
0 commit comments