Thanks you for your interest Andrew.  Unfortunately, we can't currently 
accept git pull requests.  We only accept patches attached to JIRA 
tickets.  For more information on how to get changes into Thrift, see the 
following page:
http://thrift.apache.org/docs/HowToContribute/

andrewgaul <g...@git.apache.org> wrote on 10/22/2013 01:04:03 AM:

> From: andrewgaul <g...@git.apache.org>
> To: dev@thrift.apache.org, 
> Date: 10/22/2013 08:22 AM
> Subject: thrift pull request: Defensively copy binary fields 
(THRIFT-2233)
> 
> GitHub user andrewgaul opened a pull request:
> 
>     https://github.com/apache/thrift/pull/60
> 
>     Defensively copy binary fields (THRIFT-2233)
> 
>     This ensures that one consumer of a ByteBuffer does not interfere 
with
>     another, e.g.,
> 
>     MyStruct myStruct = ...;
>     byte[] array = new byte[myStruct.bufferForValue().capacity()];
>     someStruct.bufferForValue().get(array);
>     someStruct.bufferForValue().get(array);  // previously, NPE
> 
> You can merge this pull request into a Git repository by running:
> 
>     $ git pull https://github.com/maginatics/thrift defensive-copy
> 
> Alternatively you can review and apply these changes as the patch at:
> 
>     https://github.com/apache/thrift/pull/60.patch
> 
> ----
> commit 5f7545b1dcd0d94724bc41cfb41bef0d7d4c869d
> Author: Andrew Gaul <g...@maginatics.com>
> Date:   2013-10-22T00:38:15Z
> 
>     Defensively copy binary fields (THRIFT-2233)
> 
>     This ensures that one consumer of a ByteBuffer does not interfere 
with
>     another, e.g.,
> 
>     MyStruct myStruct = ...;
>     byte[] array = new byte[myStruct.bufferForValue().capacity()];
>     someStruct.bufferForValue().get(array);
>     someStruct.bufferForValue().get(array);  // previously, NPE
> 
> ----
> 

Reply via email to