Eshed Shaham created AVRO-3221:
----------------------------------

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


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