Package de.hybris.platform.util.zip
Class SafeZipInputStreamTest
- java.lang.Object
-
- de.hybris.platform.util.zip.SafeZipInputStreamTest
-
@UnitTest public class SafeZipInputStreamTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SafeZipInputStreamTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidshouldReadCorrectEntriesFromZipInputStream()voidshouldThrowUnsupportedZipEntryExceptionWhenReadingMaliciousZipInputStream()static byte[]zipSlipArchiveAsBytes(java.util.List<java.lang.String> entryNames, java.util.List<java.lang.String> contents)
-
-
-
Method Detail
-
shouldThrowUnsupportedZipEntryExceptionWhenReadingMaliciousZipInputStream
public void shouldThrowUnsupportedZipEntryExceptionWhenReadingMaliciousZipInputStream()
-
shouldReadCorrectEntriesFromZipInputStream
public void shouldReadCorrectEntriesFromZipInputStream() throws java.io.IOException- Throws:
java.io.IOException
-
zipSlipArchiveAsBytes
public static byte[] zipSlipArchiveAsBytes(java.util.List<java.lang.String> entryNames, java.util.List<java.lang.String> contents)
-
-