Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testPathWithTraversal (0.08 seconds)

  1. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            String longPath = "\\share" + "\\folder".repeat(5000);
            assertThrows(SmbException.class, () -> {
                validator.validatePath(longPath);
            });
        }
    
        @Test
        public void testPathWithTraversal() throws Exception {
            assertThrows(SmbException.class, () -> {
                validator.validatePath("\\share\\..\\..\\etc\\passwd");
            });
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.2K bytes
    - Click Count (0)
Back to Top