[
https://issues.apache.org/jira/browse/THRIFT-1632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403646#comment-13403646
]
Hudson commented on THRIFT-1632:
--------------------------------
Integrated in Thrift #508 (See [https://builds.apache.org/job/Thrift/508/])
THRIFT-1632. rb: ruby: data corruption in thrift_native implementation of
MemoryBufferTransport
This patch fixes a subtle bug whereby the read buffer was being resized but the
method continued to read from the original, unresized buffer but at the wrong
location. (Revision 1355198)
Result = SUCCESS
bryanduxbury : http://svn.apache.org/viewvc/?view=rev&rev=1355198
Files :
* /thrift/trunk/lib/rb/ext/memory_buffer.c
> ruby: data corruption in thrift_native implementation of MemoryBufferTransport
> ------------------------------------------------------------------------------
>
> Key: THRIFT-1632
> URL: https://issues.apache.org/jira/browse/THRIFT-1632
> Project: Thrift
> Issue Type: Bug
> Components: Ruby - Library
> Affects Versions: 0.7, 0.8, 0.9
> Environment: Tested on Linux/Centos 6.0, with thrift_native.so
> installed
> Reporter: Nevo Hed
> Assignee: Nevo Hed
> Labels: newbie, patch
> Fix For: 0.9
>
> Attachments: patch, test.rb, test.thrift
>
>
> Detected a failure when serializing, then deserializing a specific object
> (I think the object needs to be large enough, AND probably must have non zero
> data at a specific offset)
> $ /usr/bin/thrift --gen rb test.thrift && ruby test.rb
> Caught Thrift::ProtocolException exception: Invalid value of field x1!
> Trace:
> ./gen-rb/test_types.rb:34:in `validate'
> test.rb:15:in `read'
> test.rb:15
--
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