Avro
  1. Avro
  2. AVRO-1084

acvo-c: reference counting error in file_writer and file_reader code

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.3, 1.7.0
    • Fix Version/s: 1.7.0
    • Component/s: c
    • Labels:
      None

      Description

      Missed incref/decref calls for writer_schema in file_writer_create() and avro_file_reader_get_writer_schema() functions. Crash dump example in the attached code.

      1. AVRO-1084.patch
        0.8 kB
        Pugachev Maxim
      2. example.c
        1 kB
        Pugachev Maxim

        Activity

        Hide
        Douglas Creager added a comment -

        Committed to SVN. I updated the test case to include the standard copyright notice, and fixed it so that it will compile on Windows. Also, it now deletes the output file after running the test, rather than before. That way the source tree isn't cluttered with test output files.

        Show
        Douglas Creager added a comment - Committed to SVN. I updated the test case to include the standard copyright notice, and fixed it so that it will compile on Windows. Also, it now deletes the output file after running the test, rather than before. That way the source tree isn't cluttered with test output files.
        Hide
        Pugachev Maxim added a comment -

        Patch for this issue

        Show
        Pugachev Maxim added a comment - Patch for this issue
        Hide
        Pugachev Maxim added a comment -

        Crash dump example

        Show
        Pugachev Maxim added a comment - Crash dump example

          People

          • Assignee:
            Unassigned
            Reporter:
            Pugachev Maxim
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development