[SERVER-7671] BSONObjBuilder::decouple returns a pointer to buf+4, which makes it unfreeable Created: 15/Nov/12  Updated: 11/Jul/16  Resolved: 26/Dec/12

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: None
Fix Version/s: 2.3.2

Type: Bug Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: James Wahlin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Minor Change
Operating System: ALL
Participants:

 Comments   
Comment by auto [ 21/Dec/12 ]

Author:

{u'date': u'2012-12-19T19:39:54Z', u'email': u'james.wahlin@10gen.com', u'name': u'James Wahlin'}

Message: SERVER-7671 Removed one decouple impl - unused & does not return freeable ptr

Signed-off-by: Andrew Morrow <acm@10gen.com>
Branch: master
https://github.com/mongodb/mongo/commit/aee475b5babbe42fecc638091dbc425fddddf813

Comment by James Wahlin [ 15/Nov/12 ]

A fix should be straight forward. Will shoot have have ready for review next week. Looks like we should also add an assertion on buffer ownership as well (as is done in obj() which also transfers ownership of the buffer).

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