- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validateArrayAllocation (1.62 sec)
-
src/test/java/jcifs/util/ServerResponseValidatorTest.java
validator.validateArrayAllocation(100, 10, 1000); validator.validateArrayAllocation(0, 10, 1000); // Zero size should be allowed } @Test public void testArrayAllocationNegativeSize() throws Exception { assertThrows(SmbException.class, () -> { validator.validateArrayAllocation(-1, 10, 1000); }); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
* @param elementSize size of each element * @param maxElements maximum allowed elements * @throws SmbException if allocation would be too large */ public void validateArrayAllocation(int size, int elementSize, int maxElements) throws SmbException { totalValidations.incrementAndGet(); if (size < 0) { failedValidations.incrementAndGet();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0)