Commit 5ef9ba0
authored
Fix #12833 FP knownConditionTrueFalse regression (cppcheck-opensource#6514)
Performing arithmetic on two pointers is not guaranteed to always yield
a non-zero value.
Introduced in commit ac0bd6d ("Fix 12760: FN
knownConditionTrueFalse for pointer + offset (cppcheck-opensource#6491)").1 parent 0bc7aed commit 5ef9ba0
2 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
446 | | - | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4620 | 4620 | | |
4621 | 4621 | | |
4622 | 4622 | | |
| 4623 | + | |
| 4624 | + | |
| 4625 | + | |
| 4626 | + | |
| 4627 | + | |
| 4628 | + | |
| 4629 | + | |
| 4630 | + | |
| 4631 | + | |
| 4632 | + | |
| 4633 | + | |
4623 | 4634 | | |
4624 | 4635 | | |
4625 | 4636 | | |
| |||
0 commit comments