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

Coverity analysis defect 72715: Unchecked return value

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • QuInt B (11/02/15)

    Description

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

      Defect 72715 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/util/tcmalloc_server_status_section.cpp
      Function mongo::<unnamed>::_mongoInitializerFunction_TCMallocThreadIdleListener(mongo::InitializerContext *)
      /src/mongo/util/tcmalloc_server_status_section.cpp, line: 67
      Calling "GetNumericProperty" without checking return value (as is done elsewhere 2 out of 4 times).

                  MallocExtension::instance()->GetNumericProperty("tcmalloc.max_total_thread_cache_bytes", 

      Attachments

        Activity

          People

            martin.bligh Martin Bligh
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: