Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3221

Verify NUL termination on set_string_len and make buffer more compact.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • c

    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

          Activity

            People

              Unassigned Unassigned
              ashdnazg Eshed Shaham
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m