- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 128 for SMBProtocolDecodingException (0.3 sec)
-
src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponse.java
} /** * {@inheritDoc} * * @throws SMBProtocolDecodingException if an error occurs during decoding * * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int) */ @Override protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException { final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java
} @Test void testReadDataWireFormatWithEmptyData() throws SMBProtocolDecodingException { byte[] buffer = new byte[100]; int result = response.readDataWireFormat(buffer, 0, 0); assertEquals(0, result); } @Test void testReadDataWireFormatAtBufferBoundary() throws SMBProtocolDecodingException { // Test with data exactly matching output buffer sizeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
return 0; } @Override protected int readParametersWireFormat(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException { if (throwExceptionOnReadParameters) { throw new SMBProtocolDecodingException("Test exception in readParametersWireFormat"); } return parametersWireFormatReturn; } @OverrideRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/info/Smb2SetInfoResponse.java
} /** * {@inheritDoc} * * @throws SMBProtocolDecodingException * if the response data is malformed * * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int) */ @Override protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException { final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2RdmaTransformCapabilitiesContext.java
return data.length; } @Override public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException { if (len < 20) { throw new SMBProtocolDecodingException("Invalid RDMA Transform Capabilities context length: " + len); } int start = bufferIndex; transformCount = SMBUtil.readInt2(buffer, bufferIndex);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; /** * Test class for SmbInfoAllocation */ class SmbInfoAllocationTest { private SmbInfoAllocation smbInfoAllocation; @BeforeEachRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
} @Test @DisplayName("Test decode method throws SMBProtocolDecodingException") void testDecodeThrowsException() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[10]; int bufferIndex = 0; when(messageBlock.decode(buffer, bufferIndex)).thenThrow(new SMBProtocolDecodingException("Invalid buffer")); // When & ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java
import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.Configuration; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; /** * Test class for PreauthIntegrityNegotiateContext */ @ExtendWith(MockitoExtension.class) @DisplayName("PreauthIntegrityNegotiateContext Tests")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 34K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; /** * Test class for FileEndOfFileInformation */ class FileEndOfFileInformationTest { private FileEndOfFileInformation fileInfo; @BeforeEachRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
return bytesWritten; } @Override protected int readBytesWireFormat(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException { if (throwOnRead) { throw new SMBProtocolDecodingException("Test exception"); } return bytesRead; } public void setBytesWritten(int bytes) { this.bytesWritten = bytes;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0)