Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 129 for malformed (0.08 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt

        assertFailsWith<ProtocolException> {
          clientReader.processNextFrame()
        }.also { expected ->
          assertThat(expected.message)
            .isEqualTo("Malformed close payload length of 1.")
        }
      }
    
      @Test fun closeCallsCallback() {
        data.write("880703e848656c6c6f".decodeHex()) // Close with code and reason
        clientReader.processNextFrame()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 16:11:23 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt

          OPCODE_CONTROL_CLOSE -> {
            var code = CLOSE_NO_STATUS_CODE
            var reason = ""
            val bufferSize = controlFrameBuffer.size
            if (bufferSize == 1L) {
              throw ProtocolException("Malformed close payload length of 1.")
            } else if (bufferSize != 0L) {
              code = controlFrameBuffer.readShort().toInt()
              reason = controlFrameBuffer.readUtf8()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 16:11:23 GMT 2025
    - 10K bytes
    - Click Count (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

      fun readBitString(): BitString {
        if (bytesLeft == -1L || constructed) {
          throw ProtocolException("constructed bit strings not supported for DER")
        }
        if (bytesLeft < 1) {
          throw ProtocolException("malformed bit string")
        }
        val unusedBitCount = source.readByte().toInt() and 0xff
        val byteString = source.readByteString(bytesLeft)
        return BitString(byteString, unusedBitCount)
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            }
        }
    
        @Nested
        @DisplayName("Edge Cases and Error Handling")
        class EdgeCasesTests {
    
            @Test
            @DisplayName("Should handle malformed buffer gracefully")
            void testReadDataWireFormatMalformedBuffer() {
                byte[] buffer = new byte[3]; // Too small for valid DFS referral
    
                assertThrows(ArrayIndexOutOfBoundsException.class, () -> {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  5. cmd/postpolicyform.go

    				})
    			}
    		case []any: // Handle array types.
    			if len(condt) != 3 { // Return error if we have insufficient elements.
    				return parsedPolicy, fmt.Errorf("Malformed conditional fields %s of type %s found in POST policy form", condt, reflect.TypeOf(condt).String())
    			}
    			switch toLowerString(condt[0]) {
    			case policyCondEqual, policyCondStartsWith:
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Oct 23 15:10:12 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/smb1/SmbNamedPipe.java

         * Constructs an SmbNamedPipe for a specified pipe on an SMB server.
         *
         * @param url the SMB URL of the named pipe
         * @param pipeType the type of the pipe
         * @throws MalformedURLException if the URL is malformed
         * @throws UnknownHostException if the host cannot be resolved
         */
        public SmbNamedPipe(final String url, final int pipeType) throws MalformedURLException, UnknownHostException {
            super(url);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/MultipartReaderTest.kt

        assertFailsWith<EOFException> {
          part.body.readUtf8()
        }
    
        assertFailsWith<EOFException> {
          assertThat(parts.nextPart()).isNull()
        }
      }
    
      @Test fun `malformed headers`() {
        val multipart =
          """
          |--simple boundary
          |abcd
          |
          """.trimMargin()
            .replace("\n", "\r\n")
    
        val parts =
          MultipartReader(
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed May 28 02:11:14 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

                }
            } catch (final URISyntaxException | IllegalArgumentException e) {
                if (logger.isDebugEnabled()) {
                    logger.warn("Malformed URI: " + attrValue, e);
                } else {
                    logger.warn("Malformed URI: " + attrValue + " - " + e.getMessage());
                }
            }
        }
    
        /**
         * Encodes a URL using the specified character encoding.
         *
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sat Nov 29 07:42:33 GMT 2025
    - 30.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                assertEquals("Expected structureSize = 4", exception.getMessage());
            }
    
            @Test
            @DisplayName("Should handle malformed buffer gracefully")
            void testMalformedBuffer() {
                // Given - buffer with random data
                byte[] buffer = new byte[10];
                for (int i = 0; i < buffer.length; i++) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SmbFileInputStream.java

         *
         * @param url the SMB URL to read from
         * @param tc
         *            context to use
         * @throws SmbException if an SMB error occurs
         * @throws MalformedURLException if the URL is malformed
         */
        @SuppressWarnings("resource")
        public SmbFileInputStream(final String url, final CIFSContext tc) throws SmbException, MalformedURLException {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.6K bytes
    - Click Count (0)
Back to Top