[SERVER-66828] Coverity analysis defect 122257: Misuse of memcmp-style function Created: 27/May/22 Updated: 29/Oct/23 Resolved: 27/May/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0-rc8, 6.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Coverity Collector User | Assignee: | Jack Mulrow |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | coverity | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Backport Requested: |
v6.0
|
||||||||||||
| Sprint: | Sharding NYC 2022-06-13 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
Misuse of memcmp-style function The return value may be misinterpreted if the function returns an unexpected value. A memcmp-style function is used assuming that it returns -1, 0, or 1. |
| Comments |
| Comment by Githook User [ 27/May/22 ] |
|
Author: {'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}Message: (cherry picked from commit 1bb4f64ef836c0c1a20955d8f6d559eaffe08563) |
| Comment by Githook User [ 27/May/22 ] |
|
Author: {'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}Message: |
| Comment by Kyle Suarez [ 27/May/22 ] |