Class SafeZipInputStreamTest


  • @UnitTest
    public class SafeZipInputStreamTest
    extends java.lang.Object
    • Constructor Detail

      • SafeZipInputStreamTest

        public SafeZipInputStreamTest()
    • 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)