Skip to content

Invalid enum values cause segmentation fault. #334

Closed

Description

@gitmodimo

When enum vale is out of range due to being uninitialized of any other reason the library segfaults.

The fix is easy and I think the library should not segfault on bad/uninitialized enum value.

Edit:
Tests after fix fail due to bad results not by segfault.

Activity

  1. wravery commented on Nov 6, 2024

    @wravery
    Contributor

    The proposed fix looks good, want to spin up a PR? I don't want to bypass the CLA and such by just integrating it myself, but if the PR targets either main or next I can make sure it's merged for v5.0.

  2. gitmodimo commented on Nov 7, 2024

    @gitmodimo
    Author

    PR ready . LMK if you want me to do one for this.

  3. added a commit that references this issue on Dec 7, 2024
    81abdc6
  4. added a commit that references this issue on Dec 8, 2024
    a227b09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions