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

Coverity analysis defect 135430: Incorrect sizeof expression

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2023-04-03

    Description

      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:151: BAD_SIZEOF 135430 Taking the size of "this" is suspicious.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: