Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testMethodsWithIndicesBeyondBuffer (0.79 sec)

  1. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

            assertEquals(0, response.readDataWireFormat(buffer, negativeIndex, 10));
        }
    
        @Test
        @DisplayName("Methods should handle indices beyond buffer length")
        void testMethodsWithIndicesBeyondBuffer() {
            // Arrange
            byte[] buffer = new byte[10];
            int beyondIndex = 20;
    
            // Act & Assert
            // These methods don't validate buffer bounds, so they return 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
Back to top