[SERVER-54567] uninitialized WiredTigerRecordStore::Params field in WiredTigerHarnessHelper::newCappedRecordStore() Created: 13/Feb/21  Updated: 29/Oct/23  Resolved: 18/Feb/21

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-50238 Coverity analysis defect 115402: Unin... Closed
is related to SERVER-29211 Change to explicitly journal a subset... Closed
is related to SERVER-50268 Remove use of DEPS_DEPENDENTS in the ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2021-02-22
Participants:
Linked BF Score: 45

 Description   

The WiredTigerRecordStore::Params::isReadOnly field is not initialized in the test function WiredtigerHarnessHelper::newCappedRecordStore().



 Comments   
Comment by Githook User [ 18/Feb/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-54567 remove UBSAN stanza for storage_wiredtiger_record_store_and_index_test

This reverts commit baa6f1a1ef32335356136ae144ca2b1d57f6158c.
Branch: master
https://github.com/mongodb/mongo/commit/b2d42972c374aeea62ed203ea652631fe26d53bb

Comment by Githook User [ 17/Feb/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-54567 Initialize isReadOnly in WiredTigerRecordStore::Params for unit tests
Branch: master
https://github.com/mongodb/mongo/commit/e39a36314d2363e52f0811bf01f81f9df2b5551f

Comment by Benety Goh [ 13/Feb/21 ]

This defect was uncovered during the work on SERVER-50268.

A similar fix was applied to other test functions in the same file in SERVER-50238.

The WiredTigerRecordStore::Params field isReadOnly was introduced in SERVER-29211.

Generated at Thu Feb 08 05:33:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.