[SERVER-85644] Fix cloneStrongTyped() to only copy decompressed data when present Created: 24/Jan/24  Updated: 26/Jan/24  Resolved: 25/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 8.0.0-rc0, 7.3.0-rc2

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.3
Participants:
Linked BF Score: 135

 Description   

We should check if there is a decompressed block present here. This path is not exercised too much, since it only happens on yields. We should also figure out a way to exercise it more often.

This bug can result in a server crash by dereferencing a null pointer.



 Comments   
Comment by Githook User [ 25/Jan/24 ]

Author:

{'name': 'Ian Boros', 'email': '87138302+borosaurus@users.noreply.github.com', 'username': 'borosaurus'}

Message: SERVER-85644 Ensure TSBlock clone only copies decompressed data when present (#18340)

(cherry picked from commit 9122a9b9ee52b0566f61c26ffec5532b6649a43a)

GitOrigin-RevId: 38e180e7b9ff45b619caf07b94db4ec8f71efdba
Branch: v7.3
https://github.com/mongodb/mongo/commit/b5f16e5a7fa89afaaa1663ad1ed2ead81b955e37

Comment by Githook User [ 24/Jan/24 ]

Author:

{'name': 'Ian Boros', 'email': '87138302+borosaurus@users.noreply.github.com', 'username': 'borosaurus'}

Message: SERVER-85644 Ensure TSBlock clone only copies decompressed data when present (#18340)

GitOrigin-RevId: 9122a9b9ee52b0566f61c26ffec5532b6649a43a
Branch: master
https://github.com/mongodb/mongo/commit/b25f71b0cc45e16ab9f816be8c709c51cf522b33

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