- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for exhaustion (0.06 sec)
-
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
}); assertTrue(exception.getMessage().contains("Invalid negotiate context count: 65535")); } /** * Test validation of excessive buffer sizes to prevent resource exhaustion. */ @Test public void testExcessiveBufferSizes() { byte[] buffer = createBasicNegotiateResponseBuffer(); // Test excessive maxTransactSize (> 16MB)
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/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java
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 throw new SMBProtocolDecodingException("Invalid maxTransactSize: " + this.maxTransactSize + " (must be 0-16777216)"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0)