[ 
https://issues.apache.org/jira/browse/AVRO-3221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated AVRO-3221:
---------------------------------
    Labels: pull-request-available  (was: )

> Verify NUL termination on set_string_len and make buffer more compact.
> ----------------------------------------------------------------------
>
>                 Key: AVRO-3221
>                 URL: https://issues.apache.org/jira/browse/AVRO-3221
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: c
>            Reporter: Eshed Shaham
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {{set_string_len}} expects the size to include a NUL terminator, but that's 
> not enforced in code. In addition, when it calls 
> {{avro_raw_string_set_length}}, that function adds another NUL terminator on 
> top of the expected one.
> Fixing both of these issues does not change the behaviour for valid inputs, 
> and makes sure the function fails for invalid inputs (non-null terminated 
> strings).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to