You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Thiruvalluvan M. G. (JIRA)" <ji...@apache.org> on 2018/12/28 16:26:01 UTC

[jira] [Closed] (AVRO-1995) JSON Parser does not properly check current state

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

Thiruvalluvan M. G. closed AVRO-1995.
-------------------------------------

Closing issues that got resolved in earlier releases.

> JSON Parser does not properly check current state
> -------------------------------------------------
>
>                 Key: AVRO-1995
>                 URL: https://issues.apache.org/jira/browse/AVRO-1995
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: c++
>            Reporter: Victor Mota
>            Assignee: Victor Mota
>            Priority: Minor
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> In lines https://github.com/apache/avro/blob/master/lang/c%2B%2B/impl/json/JsonIO.cc#L79 and https://github.com/apache/avro/blob/master/lang/c%2B%2B/impl/json/JsonIO.cc#L87, the expression will always evaluate to True since stArrayN and stObjectN are none-zero.
> Presumably, the author meant to do:
> if (curState == stArray0 || curState ==  stArrayN) {
> and 
> if (curState == stObject0 || curState ==  stObject0) {
> respectively.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)