[CDRIVER-684] application crash Created: 21/May/15 Updated: 21/May/15 Resolved: 21/May/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | GridFS |
| Affects Version/s: | None |
| Fix Version/s: | 1.2.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kent Sibilev | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
calling mongoc_gridfs_file_seek after mongoc_gridfs_file_save call results in EXC_BAD_ACCESS (SIGSEGV). It seems that mongoc_gridfs_file_save resets the page but doesn't check for it being NULL. |
| Comments |
| Comment by A. Jesse Jiryu Davis [ 21/May/15 ] |
|
Apologies for this bug - right now you need to create a new file with mongoc_gridfs_find_one or mongoc_gridfs_find_one_by_filename in order to read its contents back. |