Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for 0xffff (0.03 sec)

  1. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java

        void testNegativeFidValue() {
            int fid = -1; // Will be treated as 0xFFFF in unsigned 16-bit
            notifyChange = new NtTransNotifyChange(mockConfig, fid, FILE_NOTIFY_CHANGE_FILE_NAME, false);
            byte[] dst = new byte[10];
    
            notifyChange.writeSetupWireFormat(dst, 0);
    
            // Should write as 0xFFFF (65535 in unsigned)
            assertEquals(0xFFFF, SMBUtil.readInt2(dst, 4));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

            int fid = -1; // Will be treated as 0xFFFF in unsigned 16-bit
            querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, fid, OWNER_SECURITY_INFORMATION);
            byte[] dst = new byte[10];
    
            querySecurityDesc.writeParametersWireFormat(dst, 0);
    
            // Should write as 0xFFFF (65535 in unsigned)
            assertEquals(0xFFFF, SMBUtil.readInt2(dst, 0));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            buffer.putShort(0, (short) 0xFFFF);
            assertEquals(0xFFFF, NtlmMessage.readUShort(data, 0), "Should read max UShort correctly.");
    
            // Test with a negative short (should be interpreted as unsigned positive)
            buffer.putShort(0, (short) -1); // -1 is 0xFFFF
            assertEquals(0xFFFF, NtlmMessage.readUShort(data, 0), "Should interpret -1 as unsigned max UShort.");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/msrpc/lsarpc.java

                    final int _name_bufferi = _src.index;
                    _src.advance(2 * _name_bufferl);
    
                    if (this.name.buffer == null) {
                        if (_name_buffers < 0 || _name_buffers > 0xFFFF) {
                            throw new NdrException(NdrException.INVALID_CONFORMANCE);
                        }
                        this.name.buffer = new short[_name_buffers];
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 44.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/dcerpc/rpc.java

                final int _nodes = 6;
                final int _nodei = _src.index;
                _src.advance(1 * _nodes);
    
                if (node == null) {
                    if (_nodes < 0 || _nodes > 0xFFFF) {
                        throw new NdrException(NdrException.INVALID_CONFORMANCE);
                    }
                    node = new byte[_nodes];
                }
                _src = _src.derive(_nodei);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/msrpc/netdfs.java

                    final int _ss = _src.dec_ndr_long();
                    final int _si = _src.index;
                    _src.advance(4 * _ss);
    
                    if (this.s == null) {
                        if (_ss < 0 || _ss > 0xFFFF) {
                            throw new NdrException(NdrException.INVALID_CONFORMANCE);
                        }
                        this.s = new DfsInfo1[_ss];
                    }
                    _src = _src.derive(_si);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                }
    
                // there seems to be a bug with some servers that causes corruption if using signatures + CAP_LARGE_WRITE
                if (th.hasCapability(SmbConstants.CAP_LARGE_WRITEX) && !th.areSignaturesActive()) {
                    this.writeSize = Math.min(th.getConfig().getSendBufferSize() - 70, 0xFFFF - 70);
                }
    
                this.fp = 0L;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbTransport.java

     * Handles the low-level transport layer for SMB1 protocol messages.
     */
    public class SmbTransport extends Transport implements SmbConstants {
    
        static final byte[] BUF = new byte[0xFFFF];
        static final SmbComNegotiate NEGOTIATE_REQUEST = new SmbComNegotiate();
        static LogStream log = LogStream.getInstance();
        static HashMap dfsRoots = null;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/util/SMBUtilTest.java

                    (byte) 0xF0, (byte) 0xDE, (byte) 0xBC, (byte) 0x9A, (byte) 0x78, (byte) 0x56, (byte) 0x34, (byte) 0x12,
                    // 0xFFFFFFFFFFFFFFFFL
                    (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF,
                    // 0x0000000000000000L
                    (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 };
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

                    this.negotiatedFlags2 |= SmbConstants.FLAGS2_SECURITY_REQUIRE_SIGNATURES;
                }
            } else {
                this.negotiatedFlags2 &= 0xFFFF ^ SmbConstants.FLAGS2_SECURITY_SIGNATURES;
                this.negotiatedFlags2 &= 0xFFFF ^ SmbConstants.FLAGS2_SECURITY_REQUIRE_SIGNATURES;
            }
    
            if (log.isDebugEnabled()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top