Skip to content

Fix issue 14892: Inconsistent nullPointerOutOfResources after possible noreturn function#8700

Open
pfultz2 wants to merge 4 commits into
cppcheck-opensource:mainfrom
pfultz2:valueflow-unknown-noreturn-inconclusive
Open

Fix issue 14892: Inconsistent nullPointerOutOfResources after possible noreturn function#8700
pfultz2 wants to merge 4 commits into
cppcheck-opensource:mainfrom
pfultz2:valueflow-unknown-noreturn-inconclusive

Conversation

@pfultz2

@pfultz2 pfultz2 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread lib/forwardanalyzer.cpp
{
// The condition is only "known" because of an earlier assumption, so the
// skipped block could still modify the value -> lower to possible
if (!condTok->hasKnownIntValue() && skippedBlock && analyzeScope(skippedBlock).isModified() &&
Comment thread lib/forwardanalyzer.cpp
analyzer->updateState(ctx);
}

Progress updateScope(Token* endBlock, int depth = 20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants