Skip to content

[pull] main from cppcheck-opensource:main#496

Merged
pull[bot] merged 4 commits intosysfce2:mainfrom
cppcheck-opensource:main
Apr 25, 2026
Merged

[pull] main from cppcheck-opensource:main#496
pull[bot] merged 4 commits intosysfce2:mainfrom
cppcheck-opensource:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Apr 25, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

danmar and others added 4 commits April 25, 2026 18:26
…lue (#8468)

Previously, boolean literals were processed in a separate loop after
valueFlowSetConstantValue. This triggered nullPointer FP with code such
as:

int f() {
    const int* p = true ? new int() : nullptr;
    return *p; // nullPointer FP
}

Because the condition token had no known value, both branches of the
ternary operator were treated as possible, leaking a spurious null
value.

---------

Signed-off-by: Francois Berder <fberder@outlook.fr>
@pull pull Bot locked and limited conversation to collaborators Apr 25, 2026
@pull pull Bot added the ⤵️ pull label Apr 25, 2026
@pull pull Bot merged commit 3c377a9 into sysfce2:main Apr 25, 2026
11 of 59 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants