[CXX-759] document/array::view.begin() != .end() for empty documents Created: 03/Dec/15 Updated: 14/Jan/16 Resolved: 04/Dec/15 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | BSON |
| Affects Version/s: | 0.2.0 |
| Fix Version/s: | 3.0.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mira Carey | Assignee: | Mira Carey |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Epic Link: | C++11 Driver MongoDB 3.2 | ||||||||
| Description |
|
For empty documents, a la
This is because we don't check the return value of bson_iter_next() when we first initialize the iterator, so users can end up with invalid iterators. We should check the return value |
| Comments |
| Comment by Githook User [ 04/Dec/15 ] |
|
Author: {u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'jcarey@argv.me'}Message: |
| Comment by Mira Carey [ 03/Dec/15 ] |