qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafael H. Schloming (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Resolved: (QPID-1222) IoSender breaks when the send buffer is not a power of 2
Date Wed, 06 Aug 2008 22:46:46 GMT

     [ 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.


Mime
View raw message