Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 63 for Younis (0.16 sec)

  1. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                assertArrayEquals(salt, Arrays.copyOfRange(buffer, 4, 7));
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 1, 3, 5, 10, 20 })
            @DisplayName("Should encode various hash algorithm counts correctly")
            void testEncodeVariousHashAlgoCounts(int algoCount) {
                int[] hashAlgos = new int[algoCount];
                for (int i = 0; i < algoCount; i++) {
                    hashAlgos[i] = i + 1;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

            srvsvc.ShareInfo502 info502 = new srvsvc.ShareInfo502();
            info502.security_descriptor = new byte[] { 1, 2, 3, 4 };
            info502.sd_size = 100; // Mismatched size - SecurityDescriptor will try to read beyond array bounds
    
            // Replace info field
            Field infoField = msrpcShareGetInfo.getClass().getSuperclass().getDeclaredField("info");
            infoField.setAccessible(true);
            infoField.set(msrpcShareGetInfo, info502);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

            request.setInfo(mockInfo);
    
            int size = request.size();
    
            // Expected size calculation: size8(SMB2_HEADER_LENGTH + 32 + info.size())
            // size8 rounds up to nearest multiple of 8
            int expectedRawSize = Smb2Constants.SMB2_HEADER_LENGTH + 32 + 100;
            int expectedSize = (expectedRawSize + 7) & ~7; // Round up to nearest 8
            assertEquals(expectedSize, size);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/SidResolverTest.java

        }
    
        @Test
        void testResolveSidsWithOffsetAndLength_OutOfBounds() throws CIFSException {
            doThrow(new CIFSException("Array index out of bounds")).when(sidResolver)
                    .resolveSids(any(CIFSContext.class), anyString(), any(SID[].class), eq(5), anyInt());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

                when(mockReferral.getNode()).thenReturn("\\server\\share\\path");
    
                String reqPath = "\\\\server\\share\\path\\file";
                // Ensure consumed is within bounds to avoid StringIndexOutOfBoundsException
                consumed = Math.min(consumed, reqPath.length());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

        void testMethodsWithIndicesBeyondBuffer() {
            // Arrange
            byte[] buffer = new byte[10];
            int beyondIndex = 20;
    
            // Act & Assert
            // These methods don't validate buffer bounds, so they return 0
            assertEquals(0, response.writeSetupWireFormat(buffer, beyondIndex));
            assertEquals(0, response.writeParametersWireFormat(buffer, beyondIndex));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                assertThrows(ArrayIndexOutOfBoundsException.class, () -> response.readBytesWireFormat(buffer, 0));
            }
    
            @Test
            @DisplayName("Should throw exception when buffer index out of bounds")
            void testReadBytesWireFormatBufferIndexOutOfBounds() {
                // Given
                byte[] buffer = new byte[10];
    
                // When & Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/pac/PacLogonInfo.java

                final PacUnicodeString homeDirectoryString = pacStream.readUnicodeString();
                final PacUnicodeString homeDriveString = pacStream.readUnicodeString();
    
                // Some counts
                this.logonCount = pacStream.readShort();
                this.badPasswordCount = pacStream.readShort();
    
                // IDs for user
                final SID userId = pacStream.readId();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

            when(mockTreeHandle.send(any(Smb2WriteRequest.class), any())).thenReturn(mockWriteResponse);
            when(mockWriteResponse.getCount()).thenReturn(10, 5); // Return proper byte counts
    
            outputStream = new SmbFileOutputStream(mockFile, mockTreeHandle, mockFileHandle,
                    SmbConstants.O_CREAT | SmbConstants.O_WRONLY | SmbConstants.O_TRUNC, SmbConstants.FILE_WRITE_DATA,
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

                    for (int j = 0; j < 100; j++) {
                        List<DirectoryCacheEntry.FileInfo> children = entry.getChildren();
                        // Just read, don't assert specific counts due to race conditions
                        assertNotNull(children);
                    }
                });
                readThreads[i].start();
            }
    
            // Wait for all threads
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top