Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 194 for 256 (0.01 sec)

  1. src/test/java/jcifs/util/ServerResponseValidatorTest.java

                validator.validatePath("\\share\\./system");
            });
        }
    
        @Test
        public void testPathComponentTooLong() throws Exception {
            String longComponent = "a".repeat(256);
            assertThrows(SmbException.class, () -> {
                validator.validatePath("\\share\\" + longComponent);
            });
        }
    
        @Test
        public void testValidFileSize() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. cmd/apierrorcode_string.go

    	_ = x[ErrUnsupportedSyntax-251]
    	_ = x[ErrUnsupportedRangeHeader-252]
    	_ = x[ErrLexerInvalidChar-253]
    	_ = x[ErrLexerInvalidOperator-254]
    	_ = x[ErrLexerInvalidLiteral-255]
    	_ = x[ErrLexerInvalidIONLiteral-256]
    	_ = x[ErrParseExpectedDatePart-257]
    	_ = x[ErrParseExpectedKeyword-258]
    	_ = x[ErrParseExpectedTokenType-259]
    	_ = x[ErrParseExpected2TokenTypes-260]
    	_ = x[ErrParseExpectedNumber-261]
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 16 07:34:24 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                // Given - buffer with random data
                byte[] buffer = new byte[10];
                for (int i = 0; i < buffer.length; i++) {
                    buffer[i] = (byte) (Math.random() * 256);
                }
    
                // When & Then
                // Should either read successfully if random data happens to be 4,
                // or throw SMBProtocolDecodingException
                try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/InputValidator.java

        }
    
        // Maximum sizes for various SMB fields (based on protocol specifications)
        public static final int MAX_SMB_PATH_LENGTH = 32767; // Windows MAX_PATH
        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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            assertEquals((byte) (value & 0xFF), dst[3]);
        }
    
        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")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt

        assertFailsWith<EOFException> {
          serverReader.processNextFrame()
        }
      }
    
      @Test fun clientSimpleBinary() {
        val bytes = binaryData(256)
        data.write("827E0100".decodeHex()).write(bytes)
        clientReader.processNextFrame()
        callback.assertBinaryMessage(bytes)
      }
    
      @Test fun clientTwoFrameBinary() {
        val bytes = binaryData(200)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

                largeDescriptor[i] = 0;
            }
            // Rest of the buffer can be arbitrary
            for (int i = 20; i < largeDescriptor.length; i++) {
                largeDescriptor[i] = (byte) (i % 256);
            }
            info502.security_descriptor = largeDescriptor;
            info502.sd_size = largeDescriptor.length;
    
            // Replace info field
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

            if (log.isTraceEnabled()) {
                log.trace("update: " + this.updates + " " + offset + ":" + len);
                log.trace(Hexdump.toHexString(input, offset, Math.min(len, 256)));
            }
            if (len == 0) {
                return; /* CRITICAL */
            }
            this.digest.update(input, offset, len);
            this.updates++;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            byte[] fileId = new byte[16];
            Arrays.fill(fileId, (byte) 0xCC);
    
            byte[] header = buildSmb2Header();
            int ctxOffsetFromHeader = 256; // arbitrary aligned location beyond header
            byte[] baseBody = buildCreateBodyWithContext(fileId, ctxOffsetFromHeader);
    
            // Build actual context bytes matching the pointers inside baseBody
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            verify(response).getErrorCode();
        }
    
        @Test
        @DisplayName("Test Response interface methods - verifySignature")
        void testVerifySignature() {
            // Given
            byte[] buffer = new byte[256];
            int offset = 10;
            int size = 100;
            when(response.verifySignature(buffer, offset, size)).thenReturn(true);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
Back to top