You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Jeno I. Hajdu (JIRA)" <ji...@apache.org> on 2014/06/16 21:47:02 UTC

[jira] [Updated] (AVRO-1528) avro_schema_enum_get returns invalid pointer for unknown indices

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

Jeno I. Hajdu updated AVRO-1528:
--------------------------------

    Attachment: AVRO-1528.patch

I have attached a patch with the fix

> avro_schema_enum_get returns invalid pointer for unknown indices
> ----------------------------------------------------------------
>
>                 Key: AVRO-1528
>                 URL: https://issues.apache.org/jira/browse/AVRO-1528
>             Project: Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.7.6
>            Reporter: Jeno I. Hajdu
>            Priority: Trivial
>         Attachments: AVRO-1528.patch
>
>
> When avro_schema_enum_get() is called with invalid indices it returns an invalid pointer instead of NULL, this leads to segfaults. Similar problem is already handled in avro_schema_enum_get_by_name() when converting the other way round, avro_schema_enum_get() could handle it likewise.



--
This message was sent by Atlassian JIRA
(v6.2#6252)