[SERVER-78206] Ignore distributing unaccounted bytes if there are no markers Created: 19/Jun/23 Updated: 19/Jun/23 Resolved: 19/Jun/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jordi Olivares Provencio | Assignee: | Haley Connelly |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
Truncate marker initialisation can act on a collection with invalid metrics (records and dataSize > 0) as the collection is empty. In that case initialisation returns no markers and tries to distribute the leftover metrics across the markers by blindly taking the first one. As there are no markers, this can cause an invalid memory access. |