- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 54 for NdrException (0.1 sec)
-
src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.java
public void encode(NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_referent(netname, 1); if (netname != null) { _dst = _dst.deferred; _dst.enc_ndr_string(netname); } } @Override public void decode(NdrBuffer _src) throws NdrException { _src.align(4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/netdfs.java
public void encode(NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_referent(entry_path, 1); if (entry_path != null) { _dst = _dst.deferred; _dst.enc_ndr_string(entry_path); } } @Override public void decode(NdrBuffer _src) throws NdrException { _src.align(4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 21.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/lsarpc.java
public void encode(final NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_long(length); _dst.enc_ndr_short(impersonation_level); _dst.enc_ndr_small(context_mode); _dst.enc_ndr_small(effective_only); } @Override public void decode(final NdrBuffer _src) throws NdrException { _src.align(4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 42.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java
when(mockDeferredBuffer.dec_ndr_long()).thenReturn(-1); // Invalid _name_buffers // When/Then: Should throw exception NdrException thrown = assertThrows(NdrException.class, () -> entry.decode(mockNdrBuffer)); assertEquals(NdrException.INVALID_CONFORMANCE, thrown.getMessage()); } } @Nested @DisplayName("SamrSamArray Tests") class SamrSamArrayTests {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/rpc.java
public uuid_t uuid; @Override public void encode(NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_long(this.type); if (this.uuid == null) { throw new NdrException(NdrException.NO_NULL_REF); } _dst.enc_ndr_long(this.uuid.time_low); _dst.enc_ndr_short(this.uuid.time_mid);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcMessage.java
* @throws NdrException if encoding fails */ public abstract void encode_in(NdrBuffer buf) throws NdrException; /** * Decode the output parameters from this DCERPC message. * @param buf the buffer to decode from * @throws NdrException if decoding fails */ public abstract void decode_out(NdrBuffer buf) throws NdrException;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
@Test void testShareInfoCtr502DecodeWithInvalidArraySize() throws NdrException { srvsvc.ShareInfoCtr502 ctr502 = new srvsvc.ShareInfoCtr502(); when(mockNdrBuffer.dec_ndr_long()).thenReturn(10, 1); // count, array pointer when(mockDeferredBuffer.dec_ndr_long()).thenReturn(0x10000); // invalid array size assertThrows(NdrException.class, () -> ctr502.decode(mockNdrBuffer)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java
when(mockDeferredNdrBuffer.dec_ndr_long()).thenReturn(-1, 0, 5); // Invalid _name_buffers assertThrows(NdrException.class, () -> domainInfo.decode(mockNdrBuffer)); } // Test for LsarDnsDomainInfo @Test void testLsarDnsDomainInfoEncode() throws NdrException { lsarpc.LsarDnsDomainInfo dnsDomainInfo = new lsarpc.LsarDnsDomainInfo(); dnsDomainInfo.name = new rpc.unicode_string();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 60.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcMessageTest.java
@DisplayName("decode_header should throw NdrException for invalid RPC version") void testDecodeHeaderThrowsNdrExceptionForRpcVersion() { when(mockBuffer.dec_ndr_small()).thenReturn(4); // Incorrect RPC version assertThrows(NdrException.class, () -> message.decode_header(mockBuffer)); } @Test @DisplayName("decode_header should throw NdrException for invalid minor RPC version")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.3K bytes - Viewed (0)