Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for overwritten (4.47 sec)

  1. src/main/java/jcifs/internal/SMBSigningDigest.java

     *
     * @author mbechler
     */
    public interface SMBSigningDigest {
    
        /**
         * Performs MAC signing of the SMB. This is done as follows.
         * The signature field of the SMB is overwritten with the sequence number;
         * The MD5 digest of the MAC signing key + the entire SMB is taken;
         * The first 8 bytes of this are placed in the signature field.
         *
         * @param data
         *            The data.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java

            byte[] dst = new byte[15]; // Increased buffer size to accommodate offset + 8 bytes
            int offset = 3; // start in the middle to ensure no tail is overwritten
            int bytesWritten = cmd.writeParametersWireFormat(dst, offset);
            assertEquals(8, bytesWritten, "writeParametersWireFormat should write 8 bytes");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            assertEquals(0, responseLength);
        }
    
        @Test
        void testMultipleReadDataWireFormatCalls() throws SMBProtocolDecodingException {
            // Test multiple calls to readDataWireFormat to ensure buffer is overwritten
            byte[] firstData = "First data set".getBytes();
            byte[] secondData = "Second data set".getBytes();
            byte[] buffer1 = new byte[100];
            byte[] buffer2 = new byte[100];
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/EncodableTest.java

        void encodeCopiesAndReportsSize(byte[] src, int off, int len, int dstIndex) {
            Encodable enc = new ByteEncodable(src, off, len);
    
            // Destination has guard space to verify non-overwritten regions.
            byte[] dst = new byte[dstIndex + len + 5];
            Arrays.fill(dst, (byte) 0x55);
    
            // Act
            int written = enc.encode(dst, dstIndex);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

        /**
         * Verify that decode invokes NdrBuffer.dec_ndr_short.
         */
        @Test
        void decodeWithSpiedBufferCallsDecMethod() throws NdrException {
            NdrShort ns = new NdrShort(0); // value will be overwritten
            // Pre-populate buffer with the encoding of a short value
            NdrBuffer prepare = new NdrBuffer(new byte[10], 0);
            prepare.enc_ndr_short(0x34); // Encode value 0x34
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

            void testDecodeZero() throws NdrException {
                // Given: NdrShort and mock returning zero
                NdrShort ndrShort = new NdrShort(100); // Initial value should be overwritten
                when(mockBuffer.dec_ndr_short()).thenReturn(0);
    
                // When: Decoding the value
                ndrShort.decode(mockBuffer);
    
                // Then: Should update value to zero
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

                String content = new String(in.readAllBytes(), "UTF-8");
                assertEquals(initialContent, content, "Initial content should match");
            }
    
            // Overwrite with new content
            String newContent = "New overwritten content that is longer";
            try (OutputStream out = file.openOutputStream(false)) {
                out.write(newContent.getBytes("UTF-8"));
            }
    
            // Verify new content
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ExtractDataTest.java

            assertEquals("value1", data.getValues("key")[0]);
    
            // Second operation (overwrite)
            data.putValue("key", "value2");
            assertEquals("value2", data.getValues("key")[0]);
            assertEquals(1, data.getValues("key").length);
    
            // Third operation with array (overwrite)
            data.putValues("key", new String[] { "value3", "value4", "value5" });
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/crawler/util/FieldConfigs.java

            }
    
            /**
             * Checks if the overwrite option is enabled in the configuration.
             * Returns true if "overwrite" is present in the values.
             *
             * @return true if overwriting is enabled, false otherwise
             */
            public boolean isOverwrite() {
                for (final String value : values) {
                    if ("overwrite".equalsIgnoreCase(value)) {
                        return true;
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

         * aka OPEN_ALWAYS
         */
    
        static final int FILE_OPEN_IF = 0x3;
    
        /* Open the file and overwrite it's contents or fail if it does not exist
         * aka TRUNCATE_EXISTING
         */
    
        static final int FILE_OVERWRITE = 0x4;
    
        /* Open the file and overwrite it's contents or create it if it does not exist
         * aka CREATE_ALWAYS (according to the wire when calling CreateFile)
         */
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top