THRIFT-1632. rb: ruby: data corruption in thrift_native implementation of MemoryBuffe...
authorBryan Duxbury <bryanduxbury@apache.org>
Fri, 29 Jun 2012 00:21:19 +0000 (00:21 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Fri, 29 Jun 2012 00:21:19 +0000 (00:21 +0000)
commit6530f1dc88377c3d1a9811267c76fd80d5f419c4
tree54bd5c57554e1f27fa096359b136be143f580664
parent27647d5b18e1a494c9e12c35a8701932c4767c02
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.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1355198 13f79535-47bb-0310-9956-ffa450edef68
lib/rb/ext/memory_buffer.c