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

Coverity analysis defect 86186: Unchecked return value

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.3
    • Affects Version/s: None
    • Component/s: Security
    • None
    • Fully Compatible
    • ALL
    • Security 11 (03/11/16)

      Value returned from a function is not checked for errors before being used

      Defect 86186 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/db/modules/enterprise/src/ldap/ldap_query.cpp
      Function mongo::LDAPQuery::instantiateQuery(const mongo::UserNameSubstitutionLDAPQueryConfig &, mongo::StringData)
      /src/mongo/db/modules/enterprise/src/ldap/ldap_query.cpp, line: 46
      Calling "GlobalReplace" without checking return value (as is done elsewhere 3 out of 5 times).

              kUserNameMatchToken.GlobalReplace(userName.toString(), &instance._baseDN);
      

      File: /src/mongo/db/modules/enterprise/src/ldap/ldap_query.cpp
      Function mongo::LDAPQuery::instantiateQuery(const mongo::UserNameSubstitutionLDAPQueryConfig &, mongo::StringData)
      /src/mongo/db/modules/enterprise/src/ldap/ldap_query.cpp, line: 47
      Calling "GlobalReplace" without checking return value (as is done elsewhere 3 out of 5 times).

              kUserNameMatchToken.GlobalReplace(userName.toString(), &instance._filter);
      

            Assignee:
            spencer.jackson@mongodb.com Spencer Jackson
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: