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

Bryan Duxbury updated THRIFT-402:
---------------------------------

    Attachment: thrift-402.patch

This fixes the problem.

> MemoryBuffer > 4096 bytes will truncate remaining bytes
> -------------------------------------------------------
>
>                 Key: THRIFT-402
>                 URL: https://issues.apache.org/jira/browse/THRIFT-402
>             Project: Thrift
>          Issue Type: Bug
>          Components: Library (Ruby)
>            Reporter: Bryan Duxbury
>            Assignee: Bryan Duxbury
>            Priority: Blocker
>             Fix For: 0.1
>
>         Attachments: thrift-402.patch
>
>
> There is a bug in the thrift_native implementation of MemoryBuffer. When the 
> read index is >= 4096, we're supposed to chop that 4096 bytes off the buffer 
> to save memory. Instead, it incorrectly nils out the entire buffer, 
> effectively truncating the remaining buffer.

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