[ 
https://issues.apache.org/jira/browse/THRIFT-1525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246915#comment-13246915
 ] 

Will Pierce commented on THRIFT-1525:
-------------------------------------

How does this patch look?
                
> Serialization / Deterialization of oversized i32 problematic in 
> TCompactProtocol
> --------------------------------------------------------------------------------
>
>                 Key: THRIFT-1525
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1525
>             Project: Thrift
>          Issue Type: Bug
>          Components: Python - Library
>    Affects Versions: 0.8
>            Reporter: Ted Schundler
>            Priority: Minor
>         Attachments: THRIFT-1525.compactproto_rangechecks_v1.patch
>
>
> Serialization of integers outside of the range handled by i32 numbers happens 
> without any errors raised.
> Deserialization yields unexpected results - for example 3000000000 (outside 
> the range of i32) will be deserialized as -3000000000 (also outside the range 
> of i32, and not the same as simply casting the unsigned int as signed)

--
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

        

Reply via email to