[
https://issues.apache.org/jira/browse/AVRO-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lucas Martin-King updated AVRO-1014:
------------------------------------
Attachment: avrocat_check_return_value.patch
> 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
> Labels: avrocat
> Attachments: avrocat_check_return_value.patch
>
>
> 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