[CDRIVER-4290] _mongoc_cursor_fetch_stream may fail to check for non-null server stream Created: 10/Feb/22 Updated: 28/Oct/23 Resolved: 10/Feb/22 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | 1.21.0 |
| Fix Version/s: | 1.21.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeremy Mikola | Assignee: | Jeremy Mikola |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Description |
|
When _mongoc_cursor_fetch_stream was modified in 9eba451 for CDRIVER-3893, a code path was introduced where the return value of mongoc_cluster_stream_for_server was no longer checked for a null value before access. There are few conditions where mongoc_cluster_stream_for_server might return null, but I observed this through a segfault in PHPC's server-executeQuery-012.phpt test due a mismatched server hint and pinned client session. |
| Comments |
| Comment by Githook User [ 10/Feb/22 ] |
|
Author: {'name': 'Jeremy Mikola', 'email': 'jmikola@gmail.com', 'username': 'jmikola'}Message: Skip test pending libmongoc segfault fix ( |
| Comment by Githook User [ 10/Feb/22 ] |
|
Author: {'name': 'Jeremy Mikola', 'email': 'jmikola@gmail.com', 'username': 'jmikola'}Message: |
| Comment by Githook User [ 10/Feb/22 ] |
|
Author: {'name': 'Jeremy Mikola', 'email': 'jmikola@gmail.com', 'username': 'jmikola'}Message: |
| Comment by Jeremy Mikola [ 10/Feb/22 ] |