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

String Const Correctness in Avro-C

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.1
    • 1.6.2
    • c

    Description

      I notice that avro_value_set_string() takes in a char *, not a const char *, and some of the the lower level functions it uses do take a const char *.

      I would presume that the library does not modify user input string data.

      Can we fix this by maintaining const char * all the way up to the user API?

      Attachments

        1. avro_const_string.patch
          7 kB
          Lucas Martin-King

        Activity

          People

            dcreager Douglas Creager
            lmartinking Lucas Martin-King
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: