- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for validateBufferAccess (0.13 seconds)
-
src/main/java/jcifs/util/ServerResponseValidator.java
* * @param buffer the buffer * @param offset offset to access * @param length length to read * @throws SmbException if access would exceed bounds */ public void validateBufferAccess(byte[] buffer, int offset, int length) throws SmbException { totalValidations.incrementAndGet(); if (buffer == null) { failedValidations.incrementAndGet();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) -
src/test/java/jcifs/util/ServerResponseValidatorTest.java
byte[] buffer = new byte[100]; validator.validateBufferAccess(buffer, 10, 20); // Should pass without exception } @Test public void testBufferAccessNullBuffer() throws Exception { assertThrows(SmbException.class, () -> { validator.validateBufferAccess(null, 0, 10); }); } @Test
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)