Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-239

The ChunkEncoder could request for a negative buffer limit causing an IllegalArgumentException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1-beta2
    • 4.1
    • HttpCore NIO
    • None

    Description

      An occurrence of this issue causes the following stacktrace:

      java.lang.IllegalArgumentException
      at java.nio.Buffer.limit(Buffer.java:249)
      at org.apache.http.impl.nio.codecs.ChunkEncoder.write(ChunkEncoder.java:99)

      Attachments

        1. httpcore-239.patch
          0.9 kB
          Asankha Chamath Perera
        2. httpcore-239-with-unittest.patch
          5 kB
          Asankha Chamath Perera

        Activity

          People

            asankha Asankha Chamath Perera
            asankha Asankha Chamath Perera
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: