avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramana Suvarapu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1415) C++ binary encoder and decoder doesn't handle uninitialzed enums
Date Tue, 17 Dec 2013 04:51:06 GMT

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

Ramana Suvarapu commented on AVRO-1415:
---------------------------------------

Attached a patch to fix this problem

> C++ binary encoder and decoder doesn't handle uninitialzed enums
> ----------------------------------------------------------------
>
>                 Key: AVRO-1415
>                 URL: https://issues.apache.org/jira/browse/AVRO-1415
>             Project: Avro
>          Issue Type: Bug
>          Components: c++
>    Affects Versions: 1.7.4
>            Reporter: Ramana Suvarapu
>         Attachments: AVRO-1415.patch
>
>
> When enums are not properly initialized and when they get encoded / decoded, C++ enum
encoding and decoding traits don't check for uninitialed enums and it encodes the wrong values.
When Java or C# tries to decode them, they throw out of boundary exceptions.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message