You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2014/02/16 01:54:19 UTC

[jira] [Updated] (THRIFT-2365) C# decodes too many binary bytes from JSON

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

Jens Geyer updated THRIFT-2365:
-------------------------------

    Attachment: THRIFT-2365_Csharp_decodes_too_many_binary_bytes_from_JSON.patch

> C# decodes too many binary bytes from JSON
> ------------------------------------------
>
>                 Key: THRIFT-2365
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2365
>             Project: Thrift
>          Issue Type: Bug
>          Components: C# - Library
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>              Labels: json
>             Fix For: 0.9.2
>
>         Attachments: THRIFT-2365_Csharp_decodes_too_many_binary_bytes_from_JSON.patch
>
>
> If the length of a certain binary data block is not a multiple of 3 (e.g. 16384 bytes), the JSON decoder returns a byte[] array with the length of the next multiple of 3 (e.g. 16386 bytes), because possible [base64 fill bytes|http://tools.ietf.org/html/rfc4648#section-4]  contained in the input data are not handled correctly during the decoding process. 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)