You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Lucas Martin-King (JIRA)" <ji...@apache.org> on 2012/09/13 04:55:07 UTC

[jira] [Created] (AVRO-1159) Avro-C: read_union_value does not check discriminant

Lucas Martin-King created AVRO-1159:
---------------------------------------

             Summary: Avro-C: read_union_value does not check discriminant
                 Key: AVRO-1159
                 URL: https://issues.apache.org/jira/browse/AVRO-1159
             Project: Avro
          Issue Type: Bug
          Components: c
    Affects Versions: 1.7.1
            Reporter: Lucas Martin-King


Currently read_union_value() in value-read.c does not check if the discriminant it reads is valid in any way.

This can lead to SEGFAULTs after the use of avro_value_set_branch() as read_value() will attempt to read beyond or behind our dataum in memory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (AVRO-1159) Avro-C: read_union_value does not check discriminant

Posted by "Lucas Martin-King (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lucas Martin-King updated AVRO-1159:
------------------------------------

    Status: Patch Available  (was: Open)
    
> Avro-C: read_union_value does not check discriminant
> ----------------------------------------------------
>
>                 Key: AVRO-1159
>                 URL: https://issues.apache.org/jira/browse/AVRO-1159
>             Project: Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.7.1
>            Reporter: Lucas Martin-King
>              Labels: segfault, union
>         Attachments: union_discriminant_check.patch
>
>
> Currently read_union_value() in value-read.c does not check if the discriminant it reads is valid in any way.
> This can lead to SEGFAULTs after the use of avro_value_set_branch() as read_value() will attempt to read beyond or behind our dataum in memory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (AVRO-1159) Avro-C: read_union_value does not check discriminant

Posted by "Douglas Creager (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Douglas Creager updated AVRO-1159:
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.2
           Status: Resolved  (was: Patch Available)

Merged into SVN
                
> Avro-C: read_union_value does not check discriminant
> ----------------------------------------------------
>
>                 Key: AVRO-1159
>                 URL: https://issues.apache.org/jira/browse/AVRO-1159
>             Project: Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.7.1
>            Reporter: Lucas Martin-King
>              Labels: segfault, union
>             Fix For: 1.7.2
>
>         Attachments: union_discriminant_check.patch
>
>
> Currently read_union_value() in value-read.c does not check if the discriminant it reads is valid in any way.
> This can lead to SEGFAULTs after the use of avro_value_set_branch() as read_value() will attempt to read beyond or behind our dataum in memory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (AVRO-1159) Avro-C: read_union_value does not check discriminant

Posted by "Lucas Martin-King (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lucas Martin-King updated AVRO-1159:
------------------------------------

    Attachment: union_discriminant_check.patch

A patch resolving the issue is hereby placed into the public domain by Experian Hitwise Pty. Ltd.
                
> Avro-C: read_union_value does not check discriminant
> ----------------------------------------------------
>
>                 Key: AVRO-1159
>                 URL: https://issues.apache.org/jira/browse/AVRO-1159
>             Project: Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.7.1
>            Reporter: Lucas Martin-King
>              Labels: segfault, union
>         Attachments: union_discriminant_check.patch
>
>
> Currently read_union_value() in value-read.c does not check if the discriminant it reads is valid in any way.
> This can lead to SEGFAULTs after the use of avro_value_set_branch() as read_value() will attempt to read beyond or behind our dataum in memory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira