- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for testReadBytesWireFormatInvalidStructureSize (0.51 sec)
-
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
// Then assertEquals(4, bytesRead); } @Test @DisplayName("Should throw exception for invalid structure size") void testReadBytesWireFormatInvalidStructureSize() { // Given byte[] buffer = new byte[10]; int bufferIndex = 0; SMBUtil.writeInt2(5, buffer, bufferIndex); // Invalid structure size
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
} @DisplayName("Should throw exception for invalid structure size") @ParameterizedTest @ValueSource(ints = { 0, 1, 2, 4, 8, 15, 17, 32, 64, 65535 }) void testReadBytesWireFormatInvalidStructureSize(int structureSize) { // Given byte[] buffer = new byte[256]; int offset = 0; // Write invalid structure size
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java
assertEquals(2, result); } @Test @DisplayName("Test readBytesWireFormat with invalid structure size throws exception") void testReadBytesWireFormatInvalidStructureSize() { byte[] buffer = new byte[1024]; int bufferIndex = 0; // Set structure size to 4 (invalid, should be 2) SMBUtil.writeInt2(4, buffer, bufferIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
assertTrue(response.getInfo() instanceof FileInternalInfo); } @Test @DisplayName("Test readBytesWireFormat with invalid structure size throws exception") void testReadBytesWireFormatInvalidStructureSize() { response = new Smb2QueryInfoResponse(mockConfig, (byte) 1, (byte) 2); byte[] buffer = new byte[1024]; int bufferIndex = 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
} @DisplayName("Should throw exception for invalid structure size") @ParameterizedTest @ValueSource(ints = { 0, 1, 8, 10, 16, 18, 100, 65535 }) void testReadBytesWireFormatInvalidStructureSize(int structureSize) { // Given byte[] buffer = new byte[256]; int bufferIndex = 0; // Write invalid structure size
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
assertEquals(1, response.getResults().length); // Due to implementation bug } @Test @DisplayName("Test readBytesWireFormat with invalid structure size throws exception") void testReadBytesWireFormatInvalidStructureSize() { response = new Smb2QueryDirectoryResponse(mockConfig, (byte) 0x03); byte[] buffer = new byte[1024]; int bufferIndex = 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0)