[CDRIVER-1083] bson_ascii_strtoll can't parse "0 " Created: 06/Feb/16  Updated: 10/Aug/16  Resolved: 09/Feb/16

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

Type: Bug Priority: Major - P3
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

Issue Links:
Duplicate
is duplicated by CDRIVER-1170 Problem with bson_new_from_json with ... Closed

 Description   

A zero followed by a space is considered invalid.

/* sets errno to EINVAL */
bson_ascii_strtoll ("0 ", *endptr, 10);



 Comments   
Comment by Githook User [ 09/Feb/16 ]

Author:

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

Message: CDRIVER-1083 bson_ascii_strtoll can't parse "0 "
Branch: master
https://github.com/mongodb/libbson/commit/fe91725f7a4c84adcd4b7f071b687e52a96642d1

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