[
https://issues.apache.org/jira/browse/THRIFT-1622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
NN updated THRIFT-1622:
-----------------------
Attachment: (was: t_cpp_generator.cc.patch)
> 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
> 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