[SERVER-14254] Do not store native function pointer as a property in function prototype Created: 14/Jun/14  Updated: 22/Jul/15  Resolved: 03/Jul/14

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 2.4.10, 2.6.1
Fix Version/s: 2.4.11, 2.6.4, 2.7.3

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Done Votes: 1
Labels: community-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-14778 Hide function and data pointers for n... Closed
Tested
Operating System: ALL
Backport Completed:
Sprint: Server 2.7.3
Participants:

 Description   

Under v8 3.12, this will crash the scripting engine:

db.t.save({})
db.t.findOne()._id.constructor._v8_function.toString()



 Comments   
Comment by Githook User [ 22/Jul/14 ]

Author:

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

Message: SERVER-14254 convert _v8_function from function pointer to boolean

(cherry picked from commit e48abc5beeec5c8b79a6a6a42f9d374ccd323fd2)
Branch: v2.4
https://github.com/mongodb/mongo/commit/1fbb52159eb9748627ffd2ae16785ad807d3ebb1

Comment by Githook User [ 22/Jul/14 ]

Author:

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

Message: SERVER-14254 convert _v8_function from function pointer to boolean

(cherry picked from commit e48abc5beeec5c8b79a6a6a42f9d374ccd323fd2)
Branch: v2.6
https://github.com/mongodb/mongo/commit/1969f2661326eeee4d771778bb0e77a64757cddb

Comment by Githook User [ 03/Jul/14 ]

Author:

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

Message: SERVER-14254 added jstest for _v8_function.toString()
Branch: master
https://github.com/mongodb/mongo/commit/e9fc46ab7d8cfe96454067036f0d272b61c7ab0a

Comment by Githook User [ 03/Jul/14 ]

Author:

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

Message: SERVER-14254 (v8-3.25) convert _v8_function from function pointer to boolean
Branch: master
https://github.com/mongodb/mongo/commit/9353eeba86181872722385f95c013b5b5b98f367

Comment by Githook User [ 03/Jul/14 ]

Author:

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

Message: SERVER-14254 convert _v8_function from function pointer to boolean
Branch: master
https://github.com/mongodb/mongo/commit/e48abc5beeec5c8b79a6a6a42f9d374ccd323fd2

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