Avro
  1. Avro
  2. AVRO-1528

avro_schema_enum_get returns invalid pointer for unknown indices

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 1.7.6
    • Fix Version/s: None
    • Component/s: c
    • Labels:
      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.

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

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Jeno I. Hajdu
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development