Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for reasonable (0.96 sec)

  1. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

            assertTrue(afterTripTime < 200, "Time should be reasonable");
    
            // Reset circuit
            circuitBreaker.reset();
            Thread.sleep(50);
    
            long afterResetTime = circuitBreaker.getTimeSinceLastStateChange();
            assertTrue(afterResetTime >= 50, "Time should have reset");
            assertTrue(afterResetTime < 100, "Time should be reasonable");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/ServerResponseValidator.java

                throw new SmbException("Invalid file size: " + size);
            }
    
            // Reasonable upper limit (1TB)
            long maxSize = 1099511627776L;
            if (size > maxSize) {
                failedValidations.incrementAndGet();
                log.warn("File size exceeds reasonable limit: {} > {}", size, maxSize);
                throw new SmbException("File size exceeds limit: " + size);
            }
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  3. 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 11:21:39 UTC 2025
    - Last Modified: Mon Jan 11 04:26:17 UTC 2021
    - 11.1K 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:54:13 UTC 2025
    - Last Modified: Thu Feb 20 19:53:57 UTC 2020
    - 11.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            // Check that filename is written correctly (starting at offset 6)
            // The filename should be null-terminated Unicode string
            assertTrue(written > 6);
    
            // Verify the total bytes written is reasonable
            assertTrue(written > TEST_FILENAME.length());
        }
    
        @ParameterizedTest
        @CsvSource({ "4, 257", // FILE_BASIC_INFO -> 0x0101
                "5, 258", // FILE_STANDARD_INFO -> 0x0102
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

        }
    
        @Test
        @DisplayName("Test decode with maximum file name length")
        void testDecodeMaxFileNameLength() throws SMBProtocolDecodingException {
            // Create a very long filename (but within reasonable bounds)
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 255; i++) {
                sb.append('A');
            }
            String longFileName = sb.toString();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

            @DisplayName("Should handle maximum buffer index")
            void testMaxBufferIndex() throws SMBProtocolDecodingException {
                // Given
                byte[] buffer = new byte[Integer.MAX_VALUE / 1000]; // Use reasonable size
                int bufferIndex = buffer.length - 4;
                SMBUtil.writeInt2(4, buffer, bufferIndex);
    
                // When
                int bytesRead = response.readBytesWireFormat(buffer, bufferIndex);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/CriticalPerformanceTest.java

            assertEquals(threadCount * operationsPerThread, treeOperations.get());
            assertTrue(avgOpTimeNs < 100000, "Tree operations should be reasonable with CopyOnWriteArrayList");
    
            session.release();
        }
    
        /**
         * Performance regression test for all critical fixes
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                    auth1.equals(auth3);
                    auth2.equals(auth3);
                }
                long totalTime = System.nanoTime() - startTime;
    
                // Should complete in reasonable time (< 10ms for 3000 operations)
                assertTrue(totalTime < 10_000_000L, "Null/empty password comparisons taking too long: " + totalTime + " ns");
            } finally {
                auth1.close();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  10. 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)
Back to top