Coverity analysis defect 86186: Unchecked return value

XMLWordPrintableJSON

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

      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
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: