Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getBufferOverflowsPrevented (0.15 seconds)

  1. src/main/java/jcifs/util/ServerResponseValidator.java

                return totalValidations;
            }
    
            public long getFailedValidations() {
                return failedValidations;
            }
    
            public long getBufferOverflowsPrevented() {
                return bufferOverflowsPrevented;
            }
    
            public long getIntegerOverflowsPrevented() {
                return integerOverflowsPrevented;
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  2. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            } catch (SmbException e) {
                // Expected
            }
    
            ServerResponseValidator.ValidationStats stats = validator.getStats();
            assertTrue(stats.getBufferOverflowsPrevented() > 0);
        }
    
        @Test
        public void testIntegerOverflowPrevention() throws Exception {
            validator.resetStats();
    
            // Trigger integer overflow prevention
            try {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.2K bytes
    - Click Count (0)
Back to Top