- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for maxTransactSize (0.21 sec)
-
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java
bufferIndex += 4; this.maxTransactSize = SMBUtil.readInt4(buffer, bufferIndex); this.maxReadSize = SMBUtil.readInt4(buffer, bufferIndex + 4); this.maxWriteSize = SMBUtil.readInt4(buffer, bufferIndex + 8); // Validate reasonable buffer sizes to prevent resource exhaustion if (this.maxTransactSize < 0 || this.maxTransactSize > 16777216) { // 16MB max
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
*/ @Test public void testExcessiveBufferSizes() { byte[] buffer = createBasicNegotiateResponseBuffer(); // Test excessive maxTransactSize (> 16MB) SMBUtil.writeInt4(20 * 1024 * 1024, buffer, 28); // 20MB SMBUtil.writeInt4(1024 * 1024, buffer, 32); // 1MB read size - valid
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
} @Test @DisplayName("Should return max transact size") void testGetMaxTransactSize() throws Exception { // Given setPrivateField(response, "maxTransactSize", 1048576); // When int size = response.getMaxTransactSize(); // Then assertEquals(1048576, size); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0)