Skip to content

Fix #11862 FN constParameterPointer with increment#5291

Merged
chrchr-github merged 13 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix11862
Aug 8, 2023
Merged

Fix #11862 FN constParameterPointer with increment#5291
chrchr-github merged 13 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix11862

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

No description provided.

@chrchr-github
Copy link
Copy Markdown
Collaborator Author

It seems that isAliasModified() relied on an incorrect return value from isVariableChanged() for *it++ in

bool f(const int* it, const int* end) {
	return (it != end) && *it++ && (it != end) && *it;
}

@chrchr-github chrchr-github marked this pull request as ready for review August 6, 2023 12:20
Comment thread lib/astutils.cpp
Comment thread lib/astutils.cpp Outdated
Comment thread lib/valueflow.cpp
Comment thread lib/astutils.cpp Outdated
Comment thread lib/astutils.cpp
@chrchr-github chrchr-github merged commit 838b6b8 into cppcheck-opensource:main Aug 8, 2023
@chrchr-github chrchr-github deleted the chr_Fix11862 branch August 8, 2023 08:38
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.

3 participants