- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validateBufferAccess (0.09 sec)
-
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
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 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();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0)