Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getIntegerOverflowsPrevented (0.09 sec)

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

            } catch (SmbException e) {
                // Expected
            }
    
            ServerResponseValidator.ValidationStats stats = validator.getStats();
            assertTrue(stats.getIntegerOverflowsPrevented() > 0);
        }
    
        @Test
        public void testBoundaryValues() throws Exception {
            // Test boundary values for safe operations
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/ServerResponseValidator.java

                return failedValidations;
            }
    
            public long getBufferOverflowsPrevented() {
                return bufferOverflowsPrevented;
            }
    
            public long getIntegerOverflowsPrevented() {
                return integerOverflowsPrevented;
            }
    
            public double getFailureRate() {
                return totalValidations > 0 ? (double) failedValidations / totalValidations : 0;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
Back to top