avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lucas Martin-King (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AVRO-1014) Avro-C's Avrocat does not check if avro_value_to_json fails
Date Tue, 31 Jan 2012 01:07:10 GMT
Avro-C's Avrocat does not check if avro_value_to_json fails
-----------------------------------------------------------

                 Key: AVRO-1014
                 URL: https://issues.apache.org/jira/browse/AVRO-1014
             Project: Avro
          Issue Type: Bug
          Components: c
            Reporter: Lucas Martin-King


In avrocat.c, function process_file, the return value of avro_value_to_json is not checked,
so if the JSON conversion fails, a free of the char *json will occur.

I have attached a patch to check the return value and print an error.

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