Skip to content

CWE mapping of duplicateExpression, duplicateBreak, unreachableCode, unsignedLessThanZero, unsignedPositive, pointerLessThanZero, pointerPositive, varFuncNullUB, nanInArithmeticExpression, commaSeparatedReturn, ignoredReturnValue#797

Merged
PKEuS merged 1 commit into
cppcheck-opensource:masterfrom
boos:cwe-mapping-4
May 22, 2016

Conversation

@boos
Copy link
Copy Markdown
Contributor

@boos boos commented May 21, 2016

CWE mapping of duplicateExpression, duplicateBreak, unreachableCode, unsignedLessThanZero, unsignedPositive, pointerLessThanZero, pointerPositive, varFuncNullUB, nanInArithmeticExpression, commaSeparatedReturn, ignoredReturnValue

Comment thread lib/checkother.cpp Outdated
"Consecutive return, break, continue, goto or throw statements are unnecessary.\n"
"Consecutive return, break, continue, goto or throw statements are unnecessary. "
"The second statement can never be executed, and so should be removed.", CWE(0U), inconclusive);
"The second statement can never be executed, and so should be removed.", CWE398, inconclusive);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be CWE561, DeadCode?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good catch. I fixed it on the same branch.

I've added another commit to the branch, squashed the commits and updated the branch with a git push -f .

…bleCode, unsignedLessThanZero, unsignedPositive, pointerLessThanZero, pointerPositive, varFuncNullUB, nanInArithmeticExpression, commaSeparatedReturn,

ignoredReturnValue
@boos boos force-pushed the cwe-mapping-4 branch from 48e7a92 to f129481 Compare May 22, 2016 09:03
@PKEuS PKEuS merged commit dce7128 into cppcheck-opensource:master May 22, 2016
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