Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
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).
Attachments
Issue Links
- links to