Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 284 for 0xFF (0.01 sec)

  1. src/test/java/jcifs/pac/ASN1UtilTest.java

            });
        }
    
        @Test
        void testReadLength_OutOfBounds() {
            // Length out of bounds
            InputStream s = new ByteArrayInputStream(new byte[] { (byte) 0x81, (byte) 0xFF }); // length 255
            assertThrows(IOException.class, () -> {
                ASN1Util.readLength(s, 200, false); // limit 200
            });
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            assertTrue(str.contains("errorCode=0"));
            assertTrue(str.contains("mid=1"));
        }
    
        @Test
        void testToStringUnknownCommand() {
            smb.command = (byte) 0xFF; // Unknown command
            smb.errorCode = 0;
            smb.mid = 1;
            String str = smb.toString();
            assertTrue(str.contains("command=UNKNOWN"));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

        @Test
        @DisplayName("Decode unknown AvPair type as generic AvPair")
        void testDecodeUnknownType() throws CIFSException {
            byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            int unknownType = 0xFF;
            byte[] avPairData = createAvPairData(unknownType, data);
            byte[] eolData = createEolData();
    
            byte[] fullData = new byte[avPairData.length + eolData.length];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

                e.fileNameLength = readInt4(buffer, bufferIndex + 60);
                //      e.eaSize = readInt4( buffer, bufferIndex + 64 );
                //      e.shortNameLength = buffer[bufferIndex + 68] & 0xFF;
    
                /* With NT, the shortName is in Unicode regardless of what is negotiated.
                 */
    
                //      e.shortName = readString( buffer, bufferIndex + 70, e.shortNameLength );
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            SMBUtil.writeTime(time, buffer, bufferIndex);
            bufferIndex += 8;
            // serverTimeZone
            buffer[bufferIndex++] = (byte) 0x80;
            buffer[bufferIndex++] = (byte) 0xFF;
            // encryptionKeyLength
            buffer[bufferIndex++] = 8;
    
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
            assertEquals(34, bytesRead);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

            @DisplayName("Should not modify destination buffer")
            void testWriteBytesWireFormatDoesNotModifyBuffer() {
                // Given
                byte[] dst = new byte[100];
                Arrays.fill(dst, (byte) 0xFF);
                byte[] originalDst = dst.clone();
    
                // When
                response.writeBytesWireFormat(dst, 0);
    
                // Then
                assertArrayEquals(originalDst, dst);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/PreauthIntegrityTest.java

            byte[] hash = transport.getPreauthIntegrityHash();
            assertNotNull(hash);
    
            // Modify returned hash
            if (hash.length > 0) {
                hash[0] = (byte) 0xFF;
            }
    
            // Get hash again - should be unmodified
            byte[] hash2 = transport.getPreauthIntegrityHash();
            assertNotNull(hash2);
    
            // If original has data, verify it wasn't modified
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/witness/WitnessRpcClient.java

            StringBuilder sb = new StringBuilder("WITNESS-");
            for (int i = 0; i < Math.min(contextHandle.length, 8); i++) {
                sb.append(String.format("%02X", contextHandle[i] & 0xFF));
            }
            sb.append("-").append(shareName.hashCode());
    
            return sb.toString();
        }
    
        /**
         * Checks if the client is connected to the witness service.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

         */
        private int countUniqueBytes(byte[] data) {
            boolean[] seen = new boolean[256];
            int count = 0;
    
            for (byte b : data) {
                int index = b & 0xFF;
                if (!seen[index]) {
                    seen[index] = true;
                    count++;
                }
            }
    
            return count;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

        @Test
        @DisplayName("Test decode operation")
        void testDecode() {
            byte[] buffer = new byte[1024];
            // Fill with basic SMB header structure
            System.arraycopy(new byte[] { (byte) 0xFF, 'S', 'M', 'B' }, 0, buffer, 0, 4);
            buffer[4] = 1; // wordCount
            buffer[7] = 0; // byteCount low
            buffer[8] = 0; // byteCount high
    
            assertDoesNotThrow(() -> response.decode(buffer, 0));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
Back to top