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

Coverity analysis defect 113947: Uninitialized scalar variable

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
    • Fully Compatible
    • ALL
    • Dev Tools 2019-11-04

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

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: