[GODRIVER-421] Decoder should error for type-missmaches and overflows. Created: 23/May/18 Updated: 27/Oct/23 Resolved: 24/Jul/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | 0.0.6 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sam Kleinman (Inactive) | Assignee: | Unassigned |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | evg | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Currently, if a struct has a sized integer, and the value in the incoming document overflows that integer, the field is zero'd and there is no error. Presumably other type missmaches should be handled. |