Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 3,751 for exceeds (0.78 sec)

  1. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

        } catch (ioe: IOException) {
          assertThat(ioe.message).isEqualTo("google.com")
          val cause = ioe.cause!!
          assertThat(cause).isInstanceOf<IOException>()
          assertThat(cause).hasMessage("response size exceeds limit (65536 bytes): 65537 bytes")
        }
      }
    
      @Test
      fun failOnBadResponse() {
        server.enqueue(dnsResponse("00"))
        try {
          dns.lookup("google.com")
          fail<Any>()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            assertEquals("short", result);
        }
    
        @Test
        void testReadStringWithMaxLengthExceeded() {
            smb.useUnicode = false;
            byte[] buffer = "a very long string that exceeds max length".getBytes();
            assertThrows(RuntimeException.class, () -> {
                smb.readString(buffer, 0, 10, false);
            });
        }
    
        @Test
        void testEncodeDecode() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

                }
            }
            return -1; // Indicate failure
        }
    
        /**
         * Timer task for destroying processes that exceed their timeout.
         * Handles graceful and forceful termination of thumbnail generation processes.
         */
        protected static class ProcessDestroyer extends TimerTask {
    
            /** The process to monitor and destroy. */
            private final Process p;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Fri Jul 18 14:34:06 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/HMACT64Test.java

            // This test uses a real MD5 instance to verify the HMAC calculation logic
            // HMACT64 is a modified HMAC-MD5 where the key is truncated at 64 bytes
            // instead of being hashed when it exceeds the block size.
    
            byte[] key = { (byte) 0x0b, (byte) 0x0b, (byte) 0x0b, (byte) 0x0b, (byte) 0x0b, (byte) 0x0b, (byte) 0x0b, (byte) 0x0b, (byte) 0x0b,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

          }
    
          val body = response.body
    
          if (body.contentLength() > MAX_RESPONSE_SIZE) {
            throw IOException(
              "response size exceeds limit ($MAX_RESPONSE_SIZE bytes): ${body.contentLength()} bytes",
            )
          }
    
          val responseBytes = body.source().readByteString()
    
          return DnsRecordCodec.decodeAnswers(hostname, responseBytes)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

            SMBProtocolDecodingException exception =
                    assertThrows(SMBProtocolDecodingException.class, () -> smallResponse.readDataWireFormat(buffer, 0, 10));
    
            assertEquals("Payload exceeds buffer size", exception.getMessage());
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 1, 10, 100, 500, 1024 })
        void testReadDataWireFormatWithVariousSizes(int dataSize) throws SMBProtocolDecodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            assertThrows(ArrayIndexOutOfBoundsException.class, () -> {
                response.readBytesWireFormat(buffer, 0);
            });
        }
    
        @Test
        @DisplayName("Should throw exception when offset exceeds buffer for reading")
        void testReadBytesWireFormatOffsetTooLarge() {
            // Given
            byte[] buffer = new byte[10];
            int offset = 9; // Only 1 byte remaining, need at least 2 for structure size
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

                    byte[] buffer = invocation.getArgument(0);
                    buffer[0] = 5;
                    buffer[1] = 0;
                    Encdec.enc_uint16le((short) 4281, buffer, 8); // Exceeds maxRecv
                    return 20;
                });
    
                assertThrows(IOException.class, () -> handle.doReceiveFragment(buf));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            assertThrows(ArrayIndexOutOfBoundsException.class, () -> {
                request.writeBytesWireFormat(buffer, 0);
            });
        }
    
        @Test
        @DisplayName("Should throw exception when offset exceeds buffer")
        void testWriteBytesWireFormatOffsetTooLarge() {
            // Given
            Configuration mockConfig = mock(Configuration.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTransportImpl.java

            throw new DfsReferral(dr);
        }
    
        <T extends CommonServerMessageBlockResponse> T send(final CommonServerMessageBlockRequest request, final T response)
                throws SmbException {
            return send(request, response, Collections.<RequestParam> emptySet());
        }
    
        <T extends CommonServerMessageBlockResponse> T send(final CommonServerMessageBlockRequest request, T response,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
Back to top