[ 
https://issues.apache.org/jira/browse/HTTPCORE-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Asankha C. Perera updated HTTPCORE-239:
---------------------------------------

    Attachment: httpcore-239-with-unittest.patch

Hi Oleg

The unit test seems to look a bit raw.. but I couldn't find an easy way to 
recreate the avail becoming negative. Please feel free to update if it can be 
improved

thanks
asankha

> The ChunkEncoder could request for a negative buffer limit causing an 
> IllegalArgumentException
> ----------------------------------------------------------------------------------------------
>
>                 Key: HTTPCORE-239
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-239
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.1-beta2
>            Reporter: Asankha C. Perera
>             Fix For: 4.1
>
>         Attachments: httpcore-239-with-unittest.patch, httpcore-239.patch
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to