avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pugachev Maxim (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1115) avro-c: possible crash error in codec cleanup code
Date Tue, 19 Jun 2012 06:58:43 GMT

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

Pugachev Maxim commented on AVRO-1115:
--------------------------------------

Oh, yes, my fault. Should be "if(!type)" or "if(type == NULL)".
                
> avro-c: possible crash error in codec cleanup code
> --------------------------------------------------
>
>                 Key: AVRO-1115
>                 URL: https://issues.apache.org/jira/browse/AVRO-1115
>             Project: Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.7.0
>            Reporter: Pugachev Maxim
>            Priority: Critical
>         Attachments: AVRO-1115.patch
>
>
> There is a possible crash error in codec cleanup code. Test-case is simple: you need
to call an "avro_file_writer_open" function with wrong file name (i.e. non-existent file).
Valgrind output:
> ==15259== Conditional jump or move depends on uninitialised value(s)
> ==15259==    at 0x40340A9: avro_codec_reset (in /home/mpugachev/work/avro-trunk/lang/c/src/libavro.so.22.0.0)
> ==15259==    by 0x4035FBC: avro_file_writer_open (in /home/mpugachev/work/avro-trunk/lang/c/src/libavro.so.22.0.0)
> ==15259==    by 0x80485B0: main (in /home/mpugachev/work/test/avro/example4)

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

        

Mime
View raw message