Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24147

MemberState value outside of range of enumeration values is undefined behavior

    • Fully Compatible
    • ALL
    • Hide

      Run jstests/replsets/test_command.js under UBSAN.

      Show
      Run jstests/replsets/test_command.js under UBSAN.
    • Platforms 15 (06/03/16)

      The CmdReplSetTest command extracts a field named 'waitForMemberState' from the command body, and converts it to an enumeration value of type MemberState. However, it does so via casting and can and does produce values that fall outside the range of the enumeration.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: