[SERVER-14189] canonicalizeClusterDN may synthesize an invalid iterator Created: 06/Jun/14 Updated: 11/Jul/16 Resolved: 23/Jun/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Security |
| Affects Version/s: | 2.6.1, 2.7.1 |
| Fix Version/s: | 2.7.3 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Andrew Morrow (Inactive) | Assignee: | Andreas Nilsson |
| Resolution: | Done | Votes: | 0 |
| Labels: | address-sanitizer | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Steps To Reproduce: |
where mongod has been built with --ssl --dbg=on on a linux machine that offers a new enough libstdc++ that _GLIBCXX_DEBUG is used. |
||||
| Participants: | |||||
| Description |
|
The loop may decrement the iterator returned by std::vector::begin(). It does not dereference the iterator, but it is still illegal to form such an iterator. This causes debugging implementations of the std library to trip. We want to be able to use those, so we should not form the bad iterator. |
| Comments |
| Comment by Githook User [ 23/Jun/14 ] |
|
Author: {u'username': u'agralius', u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@10gen.com'}Message: |