[CDRIVER-1412] convert json to bson lost integer width Created: 25/Jul/16 Updated: 07/May/18 Resolved: 28/Oct/16 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | json, libbson |
| Affects Version/s: | None |
| Fix Version/s: | 1.5.0 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | swigger | Assignee: | Hannes Magnusson |
| Resolution: | Done | Votes: | 0 |
| Labels: | Bug, neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
ALL. |
||
| Backwards Compatibility: | Fully Compatible |
| Description |
|
simple prove code:
the code will got:
-1234567890123 losts its width, narow down to int32. The bug is caused by src/bson/bson-json.c:431:
change |
| Comments |
| Comment by Hannes Magnusson [ 28/Oct/16 ] |
|
Thanks for the detailed diagnosis and fix ! |
| Comment by Githook User [ 28/Oct/16 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by A. Jesse Jiryu Davis [ 25/Jul/16 ] |
|
Good catch, thanks for the report. |