...
| Code Block | ||||
|---|---|---|---|---|
| ||||
/* (Incorrect) Set all bits in mask to one1. */ const unsigned long mask = 0xFFFFFFFF; unsigned long flipbits(unsigned long x) { return x ^ mask; } |
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
/* (Correct) Set all bits in mask to one1. */ const unsigned long mask = -1; unsigned long flipbits(unsigned long x) { return x ^ mask; } |
...
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
|---|---|---|---|---|---|
INT17-C | highHigh | probableProbable | lowLow | P18 | L1 |
Related Vulnerabilities
...