- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 75 for 655360 (1.55 sec)
-
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
void getMaximumBufferSize_returns() throws Exception { // Arrange when(handle.getMaximumBufferSize()).thenReturn(65535); // Act int size = handle.getMaximumBufferSize(); // Assert assertEquals(65535, size); verify(handle).getMaximumBufferSize(); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
// Set excessive negotiate context count (writeInt2(-1) becomes 65535) SMBUtil.writeInt2(-1, buffer, 6); SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> { response.readBytesWireFormat(buffer, 0); }); assertTrue(exception.getMessage().contains("Invalid negotiate context count: 65535")); } /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
// Protocol limits private static final int MAX_SMB_MESSAGE_SIZE = 16 * 1024 * 1024; // 16MB max for SMB3 private static final int MAX_SMB1_MESSAGE_SIZE = 65535; // 64KB for SMB1 private static final int MIN_SMB_HEADER_SIZE = 32; private static final int MAX_PATH_COMPONENT_SIZE = 255; private static final int MAX_PATH_SIZE = 32767; // StatisticsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java
bufferIndex += 8; int tzOffset = SMBUtil.readInt2(buffer, bufferIndex); // tzOffset is signed! if (tzOffset > Short.MAX_VALUE) { tzOffset = -1 * (65536 - tzOffset); } this.server.serverTimeZone = tzOffset; bufferIndex += 2; this.server.encryptionKeyLength = buffer[bufferIndex++] & 0xFF; return bufferIndex - start;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
assertEquals(16, result3); } @Test @DisplayName("Should handle maximum name length") void testMaximumNameLength() { byte[] maxName = new byte[65536]; // 64KB Arrays.fill(maxName, (byte) 'M'); TestCreateContextRequest request = new TestCreateContextRequest(maxName); assertArrayEquals(maxName, request.getName());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
@Test @DisplayName("Should decode large value correctly") void testDecodeLargeValue() throws NdrException { // Given: NdrShort and mock returning large value int largeValue = 65535; NdrShort ndrShort = new NdrShort(0); when(mockBuffer.dec_ndr_short()).thenReturn(largeValue); // When: Decoding the value ndrShort.decode(mockBuffer);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
src/main/java/jcifs/Configuration.java
/** * * Property {@code jcifs.smb.client.rcv_buf_size} (int, default 65535) * * @return receive buffer size, in bytes * @deprecated use getReceiveBufferSize instead */ @Deprecated int getRecieveBufferSize(); /** * * Property {@code jcifs.smb.client.rcv_buf_size} (int, default 65535) * * @return receive buffer size, in bytes */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 25.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java
@Test void testLargeBatchParameters() { // Test with maximum allowed values int maxSid = 0xFFFF; int maxResumeKey = 0x7FFFFFFF; int maxBatchCount = 65535; int maxBatchSize = 65535; trans2FindNext2 = new Trans2FindNext2(config, maxSid, maxResumeKey, TEST_FILENAME, maxBatchCount, maxBatchSize); byte[] buffer = new byte[512];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
byte[] salt = new byte[64]; SecureRandom random = new SecureRandom(); for (int i = 0; i < hashAlgos.length; i++) { hashAlgos[i] = random.nextInt(65536); } random.nextBytes(salt); PreauthIntegrityNegotiateContext original = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt); // Encode
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbConstants.java
int OPEN_FUNCTION_FAIL_IF_EXISTS = 0x0000; /** Open function overwrite if exists */ int OPEN_FUNCTION_OVERWRITE_IF_EXISTS = 0x0020; /** Process ID */ int PID = (int) (Math.random() * 65536d); /** Share level security */ int SECURITY_SHARE = 0x00; /** User level security */ int SECURITY_USER = 0x01; /** Command offset in SMB header */ int CMD_OFFSET = 4;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.3K bytes - Viewed (0)