[SERVER-75023] Coverity analysis defect 135430: Incorrect sizeof expression Created: 19/Mar/23  Updated: 29/Oct/23  Resolved: 27/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Mihai Andrei
Resolution: Fixed Votes: 0
Labels: coverity, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by SERVER-71037 Investigate remaining sort regressions Closed
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QE 2023-04-03
Participants:

 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.


Generated at Thu Feb 08 06:29:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.