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

LDAPArrayIterator behaves incorrectly when initialized with an empty array

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.9, 4.0.4
    • Fix Version/s: 3.6.10, 4.0.6, 4.1.7
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      Security 2018-12-31

      Description

      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()

       

       

       

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: