[CDRIVER-1304] 32-bit overflow in _bson_grow Created: 24/May/16  Updated: 14/Nov/16  Resolved: 14/Nov/16

Status: Closed
Project: C Driver
Component/s: libbson
Affects Version/s: None
Fix Version/s: 1.5.0

Type: Bug Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

On a 32-bit platform, _bson_grow(bson, INT32_MAX + 1) overflows and allocates zero bytes.



 Comments   
Comment by Bernie Hackett [ 14/Nov/16 ]

Setting fix version to 1.5 since this change is in master.

Comment by Githook User [ 14/Nov/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1304 test bson_reserve_buffer overflow
Branch: master
https://github.com/mongodb/libbson/commit/db56b369a83c8e1cb7e640ef1a769c34f79b06a8

Comment by Githook User [ 24/May/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1304 remove overflow test
Branch: master
https://github.com/mongodb/libbson/commit/01a6888764be1ab9363bbef06920a5230ab2f386

Generated at Wed Feb 07 21:12:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.