[SERVER-21554] Coverity analysis defect 76764: Macro compares unsigned to 0 Created: 19/Nov/15 Updated: 13/Aug/16 Resolved: 20/Jul/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 3.3.11 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Coverity Collector User | Assignee: | Waley Chen |
| Resolution: | Done | Votes: | 0 |
| Labels: | coverity | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Platforms 18 (08/05/16) |
| Participants: |
| Description |
|
An unsigned value can never be less than 0 Defect 76764 (STATIC_C)
|
| Comments |
| Comment by Githook User [ 20/Jul/16 ] |
|
Author: {u'username': u'WaleyChen', u'name': u'Waley Chen', u'email': u'waleycz@gmail.com'}Message: |
| Comment by Eric Milkie [ 19/Nov/15 ] |
|
This is an interesting one. The 'auto' obscured that something is unsigned, and thus will underflow rather than going negative. |