Class SafeZipInputStreamTest

java.lang.Object
de.hybris.platform.util.zip.SafeZipInputStreamTest

@UnitTest public class SafeZipInputStreamTest extends Object
  • Constructor Details

    • SafeZipInputStreamTest

      public SafeZipInputStreamTest()
  • Method Details

    • shouldThrowUnsupportedZipEntryExceptionWhenReadingMaliciousZipInputStream

      public void shouldThrowUnsupportedZipEntryExceptionWhenReadingMaliciousZipInputStream()
    • shouldReadCorrectEntriesFromZipInputStream

      public void shouldReadCorrectEntriesFromZipInputStream() throws IOException
      Throws:
      IOException
    • zipSlipArchiveAsBytes

      public static byte[] zipSlipArchiveAsBytes(List<String> entryNames, List<String> contents)