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

avro_schema_enum_get returns invalid pointer for unknown indices

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.7.6
    • 1.9.0
    • c
    • None

    Description

      When avro_schema_enum_get() is called with invalid indices it returns an invalid pointer instead of NULL, this leads to segfaults. Similar problem is already handled in avro_schema_enum_get_by_name() when converting the other way round, avro_schema_enum_get() could handle it likewise.

      Attachments

        1. AVRO-1528.patch
          1 kB
          Jeno I. Hajdu

        Issue Links

          Activity

            People

              bw123 Ben Walsh
              hji Jeno I. Hajdu
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: