[SERVER-24147] MemberState value outside of range of enumeration values is undefined behavior Created: 16/May/16 Updated: 06/Jun/16 Resolved: 16/May/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.3.8 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Andrew Morrow (Inactive) | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | undefined-sanitizer | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Steps To Reproduce: | Run jstests/replsets/test_command.js under UBSAN. |
| Sprint: | Platforms 15 (06/03/16) |
| Participants: |
| Description |
|
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. |
| Comments |
| Comment by Githook User [ 16/May/16 ] |
|
Author: {u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}Message: |