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

Coverity analysis defect 113947: Uninitialized scalar variable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: Internal Code
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Dev Tools 2019-11-04

      Description

      Use of an uninitialized variable

      Defect 113947 (STATIC_C)
      Checker UNINIT (subcategory none)
      File: /src/mongo/stdx/thread.h
      Function mongo::stdx::support::SigAltStackController::_uninstall() const
      /src/mongo/stdx/thread.h, line: 88
      Declaring variable "ss" without initializer.

                  stack_t ss;

      /src/mongo/stdx/thread.h, line: 90
      Using uninitialized value "ss". Field "ss.ss_sp" is uninitialized when calling "sigaltstack".

                  if (sigaltstack(&ss, nullptr)) {

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: