[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:
Gantt Dependency
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

buildscripts/smoke.py jstests/sslSpecial/upgrade_to_x509_ssl_nossl.js

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: SERVER-14189 Fixed invalid iterator decrement
Branch: master
https://github.com/mongodb/mongo/commit/b760878741a94e6dd5a26ba771c2512b66adae30

Generated at Thu Feb 08 03:34:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.