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] Created: (QPID-1222) IoSender breaks when the send buffer is not a power of 2
Date Wed, 06 Aug 2008 21:22:44 GMT
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


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