Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Small (0.03 sec)

  1. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

        }
    
        @Test
        @DisplayName("Test small data handling")
        public void testSmallDataHandling() throws CIFSException {
            byte[] smallData = new byte[100]; // Below minimum compression size
    
            byte[] compressed = compressionService.compress(smallData, CompressionService.COMPRESSION_LZ77);
            // Should return uncompressed data for small inputs
            assertArrayEquals(smallData, compressed);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

                response.readBytesWireFormat(tooSmallBuffer, 0);
            });
    
            assertTrue(exception.getMessage().contains("Buffer too small for SMB2 negotiate response"));
            assertTrue(exception.getMessage().contains("minimum 65 bytes required"));
        }
    
        /**
         * Test validation of excessive negotiate context count.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NtStatus.java

        int NT_STATUS_MORE_PROCESSING_REQUIRED = 0xC0000016;
        /** Access is denied */
        int NT_STATUS_ACCESS_DENIED = 0xC0000022;
        /** The data area passed to a system call is too small */
        int NT_STATUS_BUFFER_TOO_SMALL = 0xC0000023;
        /** The object name is invalid */
        int NT_STATUS_OBJECT_NAME_INVALID = 0xC0000033;
        /** The object was not found */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            // Validate minimum buffer size for SMB2 negotiate response
            if (buffer == null || buffer.length < bufferIndex + 65) {
                throw new SMBProtocolDecodingException("Buffer too small for SMB2 negotiate response (minimum 65 bytes required)");
            }
    
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 65) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

                            // Verify we can acquire the tree
                            tree.acquire();
                            successCount.incrementAndGet();
    
                            // Small delay to increase chance of race conditions
                            Thread.yield();
                        }
                    } catch (Exception e) {
                        exceptions.add(e);
                    } finally {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

            if (!isAlgorithmSupported(algorithm)) {
                throw new CIFSException("Unsupported compression algorithm: " + algorithm);
            }
            if (length < MIN_COMPRESSION_SIZE) {
                log.debug("Data too small for compression ({} bytes), returning uncompressed", length);
                byte[] result = new byte[length];
                System.arraycopy(data, offset, result, 0, length);
                return result;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            byte[] copiedData = Arrays.copyOfRange(outputBuffer, 0, dataLength);
            assertArrayEquals(testData, copiedData);
        }
    
        @Test
        @DisplayName("Should throw exception when output buffer too small")
        void testReadBytesWireFormatBufferTooSmall() throws Exception {
            // Given
            byte[] smallOutputBuffer = new byte[10];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java

        }
    
        @Test
        @DisplayName("Test invalid buffer size for decoding")
        public void testInvalidBufferSize() {
            byte[] smallBuffer = new byte[4]; // Too small
    
            assertThrows(SMBProtocolDecodingException.class, () -> {
                context.decode(smallBuffer, 0, smallBuffer.length);
            });
        }
    
        @Test
        @DisplayName("Test algorithm name resolution")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/NtStatus.java

        int NT_STATUS_MORE_PROCESSING_REQUIRED = 0xC0000016;
        /** Access is denied */
        int NT_STATUS_ACCESS_DENIED = 0xC0000022;
        /** The data area passed to a system call is too small */
        int NT_STATUS_BUFFER_TOO_SMALL = 0xC0000023;
        /** The object name is invalid */
        int NT_STATUS_OBJECT_NAME_INVALID = 0xC0000033;
        /** The object was not found */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

            });
    
            assertThrows(CIFSException.class, () -> {
                preauthService.initializeSession("test", new byte[8], PreauthIntegrityService.HASH_ALGO_SHA512); // Too small
            });
        }
    
        @Test
        @DisplayName("Test unsupported hash algorithm")
        public void testUnsupportedHashAlgorithm() {
            byte[] salt = preauthService.generatePreauthSalt();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
Back to top