Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for reasonable (3.44 sec)

  1. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            assertTrue(addr.isActive);
            assertTrue(addr.isPermanent);
        }
    
        @Test
        void readRDataWireFormat_shouldHandleMultipleNames() throws Exception {
            // Test with maximum reasonable number of names
            int numNames = 10;
            int dataLength = 1 + (18 * numNames) + 6 + 6;
            byte[] src = new byte[dataLength];
            int srcIndex = 0;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

    import jcifs.util.Encdec;
    
    public class NdrBufferTest {
    
        private byte[] buffer;
        private NdrBuffer ndrBuffer;
    
        @BeforeEach
        void setUp() {
            buffer = new byte[1024]; // Initialize with a reasonable size
            ndrBuffer = new NdrBuffer(buffer, 0);
        }
    
        @Test
        void testConstructor() {
            // Verify initial state
            assertEquals(0, ndrBuffer.start);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            // Server GUID (16 bytes of zeros)
            // Already initialized to zeros
    
            // Capabilities
            SMBUtil.writeInt4(Smb2Constants.SMB2_GLOBAL_CAP_DFS, buffer, 24);
    
            // Max sizes (reasonable values)
            SMBUtil.writeInt4(1024 * 1024, buffer, 28); // maxTransactSize
            SMBUtil.writeInt4(1024 * 1024, buffer, 32); // maxReadSize
            SMBUtil.writeInt4(1024 * 1024, buffer, 36); // maxWriteSize
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. LICENSE

       6. Trademarks. This License does not grant permission to use the trade
          names, trademarks, service marks, or product names of the Licensor,
          except as required for reasonable and customary use in describing the
          origin of the Work and reproducing the content of the NOTICE file.
    
       7. Disclaimer of Warranty. Unless required by applicable law or
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Apr 18 13:54:00 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. LICENSE

       6. Trademarks. This License does not grant permission to use the trade
          names, trademarks, service marks, or product names of the Licensor,
          except as required for reasonable and customary use in describing the
          origin of the Work and reproducing the content of the NOTICE file.
    
       7. Disclaimer of Warranty. Unless required by applicable law or
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Jun 14 07:45:22 UTC 2018
    - 11.1K bytes
    - Viewed (0)
  6. 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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            NtlmPasswordAuthenticator auth = new NtlmPasswordAuthenticator("user", "TimestampPass123!");
    
            long afterCreation = System.currentTimeMillis();
    
            // Set a reasonable TTL
            auth.setAuthenticationTTL(1000); // 1 second
    
            // Should not be expired immediately
            assertFalse(auth.isExpired());
    
            // Wait half the TTL
            Thread.sleep(500);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  8. LICENSE

       6. Trademarks. This License does not grant permission to use the trade
          names, trademarks, service marks, or product names of the Licensor,
          except as required for reasonable and customary use in describing the
          origin of the Work and reproducing the content of the NOTICE file.
    
       7. Disclaimer of Warranty. Unless required by applicable law or
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Tue May 08 21:35:34 UTC 2018
    - 11.1K bytes
    - Viewed (0)
  9. LICENSE

       6. Trademarks. This License does not grant permission to use the trade
          names, trademarks, service marks, or product names of the Licensor,
          except as required for reasonable and customary use in describing the
          origin of the Work and reproducing the content of the NOTICE file.
    
       7. Disclaimer of Warranty. Unless required by applicable law or
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Jan 11 04:30:09 UTC 2021
    - 11.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            // Set maximum values
            SMBUtil.writeInt4(Integer.MAX_VALUE, buffer, 0); // nextEntryOffset
            SMBUtil.writeInt4(Integer.MAX_VALUE, buffer, 4); // fileIndex
            // For time values, use a reasonable max time that won't overflow
            long maxTime = System.currentTimeMillis() + 1000000000000L;
            SMBUtil.writeTime(maxTime, buffer, 8); // creationTime
            SMBUtil.writeTime(maxTime, buffer, 16); // lastAccessTime
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
Back to top