[jira] [Commented] (AVRO-1279) Avro-C: file_read_header() segfaults when avro.codec is not defined

2013-07-26 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13720804#comment-13720804
 ] 

ASF subversion and git services commented on AVRO-1279:
---

Commit 1507317 from dcrea...@apache.org in branch 'avro/trunk'
[ https://svn.apache.org/r1507317 ]

AVRO-1279. C: Treat missing codec in data file as null codec.

Contributed by Carl Steinbach.

 Avro-C: file_read_header() segfaults when avro.codec is not defined
 ---

 Key: AVRO-1279
 URL: https://issues.apache.org/jira/browse/AVRO-1279
 Project: Avro
  Issue Type: Bug
  Components: c
Affects Versions: 1.7.4
Reporter: Carl Steinbach
Assignee: Carl Steinbach
 Attachments: AVRO-1279.1.patch.txt, PrimitiveTypes.avro, 
 PrimitiveTypesNoCodec.avro




--
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] [Commented] (AVRO-1279) Avro-C: file_read_header() segfaults when avro.codec is not defined

2013-04-23 Thread Doug Cutting (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13639812#comment-13639812
 ] 

Doug Cutting commented on AVRO-1279:


Carl, can you please provide a patch that fixes this?  Thanks!

 Avro-C: file_read_header() segfaults when avro.codec is not defined
 ---

 Key: AVRO-1279
 URL: https://issues.apache.org/jira/browse/AVRO-1279
 Project: Avro
  Issue Type: Bug
  Components: c
Affects Versions: 1.7.4
Reporter: Carl Steinbach
Assignee: Carl Steinbach
 Attachments: PrimitiveTypes.avro, PrimitiveTypesNoCodec.avro




--
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] [Commented] (AVRO-1279) Avro-C: file_read_header() segfaults when avro.codec is not defined

2013-04-23 Thread Carl Steinbach (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13639926#comment-13639926
 ] 

Carl Steinbach commented on AVRO-1279:
--

Will do.

 Avro-C: file_read_header() segfaults when avro.codec is not defined
 ---

 Key: AVRO-1279
 URL: https://issues.apache.org/jira/browse/AVRO-1279
 Project: Avro
  Issue Type: Bug
  Components: c
Affects Versions: 1.7.4
Reporter: Carl Steinbach
Assignee: Carl Steinbach
 Attachments: PrimitiveTypes.avro, PrimitiveTypesNoCodec.avro




--
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] [Commented] (AVRO-1279) Avro-C: file_read_header() segfaults when avro.codec is not defined

2013-03-21 Thread Carl Steinbach (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13609325#comment-13609325
 ] 

Carl Steinbach commented on AVRO-1279:
--

I observed the following behavior while using Avro-C version 1.7.4:

{code}
% avropipe PrimitiveTypesNoCodec.avro 
Segmentation fault: 11

% avropipe PrimitiveTypes.avro 
/   []
...

% avro getmeta PrimitiveTypesNoCodec.avro 
avro.schema ...

% avro getmeta PrimitiveTypes.avro 
avro.codec  null
avro.schema ...
{code}

The only difference between the two avro files is that 
PrimitiveTypesNoCodec.avro
does not include an avro.codec key in it's file header. According to the spec 
this
should be fine since avro.codec is not listed as a required header field.

The offending code is located in file_read_header:

{code}
rval = avro_value_get_by_name(meta, avro.codec, codec_val, NULL);
if (rval) {
avro_set_error(File header doesn't contain a codec);
avro_value_decref(meta);
return rval;
}
{code}


 Avro-C: file_read_header() segfaults when avro.codec is not defined
 ---

 Key: AVRO-1279
 URL: https://issues.apache.org/jira/browse/AVRO-1279
 Project: Avro
  Issue Type: Bug
  Components: c
Affects Versions: 1.7.4
Reporter: Carl Steinbach



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