Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Done
-
None
-
None
Description
Since bson_decimal128_from_string () requires a null terminated string, the BSON to JSON conversion for bson_decimal128_t allocates a new string+1 since the input isn't null terminated.
We should be able to avoid that extra malloc, either though stack allocation or passing the length to the bson_decimal128_from_string () function.
Attachments
Issue Links
- is related to
-
CDRIVER-1145 Implement Decimal 128 type spec
-
- Closed
-