[SERVER-65326] Coverity analysis defect 122032: Division or modulo by zero Created: 07/Apr/22 Updated: 06/Dec/22 Resolved: 29/Apr/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Coverity Collector User | Assignee: | [DO NOT USE] Backlog - Sharding EMEA |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | coverity | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Sharding EMEA
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Division or modulo by zero The program will have undefined behavior, likely a crash. Division or modulo by zero results in undefined behavior. |
| Comments |
| Comment by Pierlauro Sciarelli [ 29/Apr/22 ] |
|
I don't know why coverity opened this ticket 2 times. Closing as duplicate of |
| Comment by Kyle Suarez [ 07/Apr/22 ] |
|
Is it true that numRecords is nonzero if and only if dataSizeBytes is nonzero? Sending to the Sharding EMEA team to confirm. |