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

Rafael H. Schloming resolved QPID-1222.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: M3

> IoSender breaks when the send buffer is not a power of 2
> --------------------------------------------------------
>
>                 Key: QPID-1222
>                 URL: https://issues.apache.org/jira/browse/QPID-1222
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: M3
>            Reporter: Rafael H. Schloming
>            Assignee: Rafael H. Schloming
>             Fix For: M3
>
>
> The index into the circular buffer is computed by taking an absolute counter 
> modulo the buffer size. When the absolute counter wraps around, there will be 
> a jump in the computed indexes if the buffer size is not a power of two. This 
> can cause garbage to be copied into the buffer or written onto the wire. The 
> constructor should round the requested buffer size up to the nearest power of 
> two.

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

Reply via email to