You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2012/06/14 16:37:43 UTC

[jira] [Closed] (THRIFT-1622) Incorrect size returned on read

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

Bryan Duxbury closed THRIFT-1622.
---------------------------------

    Resolution: Fixed
      Assignee: NN

I just committed this. Thanks for the patch NN!
                
> Incorrect size returned on read
> -------------------------------
>
>                 Key: THRIFT-1622
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1622
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Compiler
>    Affects Versions: 0.8, 0.9
>         Environment: Any
>            Reporter: NN
>            Assignee: NN
>              Labels: patch
>             Fix For: 0.9
>
>         Attachments: t_cpp_generator.cc.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The problem exists when reading list, set or map.
> The 'xfer' variable is not updated by size of beginning and ending.
> Current generated code:
> iprot->read***Begin();
> iprot->read***End();
> Correctly generated code:
> xfer += iprot->read***Begin();
> xfer += iprot->read***End();

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira