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

Coverity analysis defect 135418: Incorrect sizeof expression

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2023-04-03

      Incorrect sizeof expression

      This is usually caused by a typo or a misunderstanding of the sizeof operator, which should be applied to the actual type whose size is desired. An incorrect sizeof value is used in further computation. The sizeof operator was applied to an unintended variable or expression, such as a pointer variable instead of its target
      /src/mongo/db/index/sort_key_generator.h:102: BAD_SIZEOF 135418 Taking the size of "this" is suspicious.

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: