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

LDAPArrayIterator behaves incorrectly when initialized with an empty array

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.10, 4.0.6, 4.1.7
    • Affects Version/s: 3.6.9, 4.0.4
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Security 2018-12-31

      Currently, the LDAPArrayIterator() of an empty array is not equal to an empty LDAPArrayIterator(). This causes it code that uses it as a begin iterator in iterator traversal to return the wrong results.

      Example:

      char* empty[] = { 0 };
      LDAPArrayIterator(empty) != LDAPArrayIterator()

       

       

       

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: