Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for maxReadSize (0.04 sec)

  1. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

                throw new SMBProtocolDecodingException("Invalid maxTransactSize: " + this.maxTransactSize + " (must be 0-16777216)");
            }
            if (this.maxReadSize < 0 || this.maxReadSize > 16777216) { // 16MB max
                throw new SMBProtocolDecodingException("Invalid maxReadSize: " + this.maxReadSize + " (must be 0-16777216)");
            }
            if (this.maxWriteSize < 0 || this.maxWriteSize > 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)
  2. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

        /**
         * Test validation of negative buffer sizes.
         */
        @Test
        public void testNegativeBufferSizes() {
            byte[] buffer = createBasicNegotiateResponseBuffer();
    
            // Test negative maxReadSize
            SMBUtil.writeInt4(1024 * 1024, buffer, 28); // 1MB transact - valid
            SMBUtil.writeInt4(-1, buffer, 32); // Negative read size
            SMBUtil.writeInt4(1024 * 1024, buffer, 36); // 1MB write - 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)
  3. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            setPrivateField(response, "securityMode", Smb2Constants.SMB2_NEGOTIATE_SIGNING_ENABLED);
            setPrivateField(response, "capabilities", Smb2Constants.SMB2_GLOBAL_CAP_DFS);
            setPrivateField(response, "maxReadSize", 65536);
            setPrivateField(response, "maxWriteSize", 65536);
            setPrivateField(response, "maxTransactSize", 65536);
    
            // Setup valid request
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top