- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for 64KB (1.04 sec)
-
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
} @Test @DisplayName("Should handle large arrays efficiently") void testWriteBytesWireFormatWithLargeArray() { // Given byte[] dst = new byte[65536]; // 64KB array // When int result = response.writeBytesWireFormat(dst, 32768); // Then assertEquals(0, result); } } @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/main/java/jcifs/util/InputValidator.java
public static final int MAX_USERNAME_LENGTH = 256; public static final int MAX_DOMAIN_LENGTH = 255; public static final int MAX_SHARE_NAME_LENGTH = 80; public static final int MAX_BUFFER_SIZE = 65536; // 64KB default max buffer public static final int MAX_SMB2_BUFFER_SIZE = 8388608; // 8MB for SMB2/3 public static final int MAX_CREDITS = 65535; // Patterns for validation
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0) -
src/main/java/jcifs/config/BaseConfiguration.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 36.5K 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/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
} @Test @DisplayName("Test large buffer handling") void testLargeBufferHandling() { // Arrange byte[] largeBuffer = new byte[65536]; // 64KB buffer // Act & Assert assertEquals(0, response.writeSetupWireFormat(largeBuffer, 0)); assertEquals(0, response.writeParametersWireFormat(largeBuffer, 32768));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
*/ @Test public void testExcessiveSecurityBufferSize() { byte[] buffer = createBasicNegotiateResponseBuffer(); // Set security buffer length to excessive size (> 64KB) SMBUtil.writeInt2(128, buffer, 56); // Security buffer offset // writeInt2(100000) will truncate to 100000 & 0xFFFF = 34464
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/smb/SmbFileInputStream.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java
bufferIndex += 4; // Validate security buffer parameters if (securityBufferLength < 0 || securityBufferLength > 65536) { // 64KB max for security buffer throw new SMBProtocolDecodingException("Invalid security buffer length: " + securityBufferLength + " (must be 0-65536)"); } if (securityBufferOffset < 0) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
cmd/encryption-v1.go
func EncryptRequest(content io.Reader, r *http.Request, bucket, object string, metadata map[string]string) (io.Reader, crypto.ObjectKey, error) { if r.ContentLength > encryptBufferThreshold { // The encryption reads in blocks of 64KB. // We add a buffer on bigger files to reduce the number of syscalls upstream. content = bufio.NewReaderSize(content, encryptBufferSize) } var ( key []byte keyID string ctx kms.Context
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 37.8K bytes - Viewed (0)