- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 102 for 655360 (0.34 sec)
-
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: Sun Sep 07 00:10:21 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; // Statistics
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/config/BaseConfigurationTest.java
assertNotNull(testConfig.getRandom()); assertNotNull(testConfig.getLocalTimezone()); // Check PID is set assertTrue(testConfig.getPid() >= 0); assertTrue(testConfig.getPid() < 65536); // Check machine ID assertNotNull(testConfig.getMachineId()); assertEquals(32, testConfig.getMachineId().length); // Check native OS
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
} private static Stream<Arguments> provideInt4TestValues() { return Stream.of(Arguments.of(0), Arguments.of(1), Arguments.of(255), Arguments.of(256), Arguments.of(65535), Arguments.of(65536), Arguments.of(0x7FFFFFFF), Arguments.of(0xFFFFFFFF)); } @Test @DisplayName("readInt2 should correctly read 16-bit integer") void testReadInt2() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
assertThat(ioe.message).isEqualTo("google.com") val cause = ioe.cause!! assertThat(cause).isInstanceOf<IOException>() assertThat(cause).hasMessage("response size exceeds limit (65536 bytes): 65537 bytes") } } @Test fun failOnBadResponse() { server.enqueue(dnsResponse("00")) try { dns.lookup("google.com") fail<Any>() } catch (ioe: IOException) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 11.7K bytes - Viewed (0) -
utils/utils_test.go
{"int64", int64(math.MaxInt64), "9223372036854775807"}, {"uint", uint(math.MaxUint64), "18446744073709551615"}, {"uint8", uint8(math.MaxUint8), "255"}, {"uint16", uint16(math.MaxUint16), "65535"}, {"uint32", uint32(math.MaxUint32), "4294967295"}, {"uint64", uint64(math.MaxUint64), "18446744073709551615"}, {"string", "abc", "abc"}, {"other", true, ""}, } for _, test := range tests {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 4.9K bytes - Viewed (0) -
cmd/net_test.go
{":0", nil}, {"localhost", nil}, {"", fmt.Errorf("invalid argument")}, {"example.org:54321", fmt.Errorf("host in server address should be this server")}, {":-10", fmt.Errorf("port must be between 0 to 65535")}, } for _, testCase := range testCases { t.Run("", func(t *testing.T) { err := CheckLocalServerAddr(testCase.serverAddr) switch { case testCase.expectedErr == nil: if err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 9.2K bytes - Viewed (0)