Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for 880100 (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            SMBUtil.writeInt4(0, buffer, bodyStart + 8);
            SMBUtil.writeInt4(0, buffer, bodyStart + 12);
    
            // Write data at the offset
            Arrays.fill(buffer, 100, 100 + dataLength, (byte) 0xCC);
    
            // Use reflection to set headerStart
            Field headerStartField = ServerMessageBlock2.class.getDeclaredField("headerStart");
            headerStartField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

                response.readBytesWireFormat(buffer, 0);
            });
    
            assertTrue(exception.getMessage().contains("Invalid negotiate context count: 1000"));
            assertTrue(exception.getMessage().contains("must be 0-100"));
        }
    
        /**
         * Test validation of negative negotiate context count.
         */
        @Test
        public void testNegativeNegotiateContextCount() {
            byte[] buffer = createBasicNegotiateResponseBuffer();
    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/internal/smb2/nego/Smb2NegotiateResponse.java

            if (negotiateContextCount < 0 || negotiateContextCount > 100) {
                throw new SMBProtocolDecodingException("Invalid negotiate context count: " + negotiateContextCount + " (must be 0-100)");
            }
    
            bufferIndex += 4;
    
            // Validate sufficient buffer space for server GUID and capabilities
            if (buffer.length < bufferIndex + 16 + 4 + 4 + 4 + 4) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
Back to top