Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CID 500198: Integer handling issues #415

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Conversation

simo5
Copy link
Member

@simo5 simo5 commented Jul 8, 2024

Description

Coverity seem to have updated its rules and is now more concerned about integer overflows than before. This place has no change of overflowing, but lets play ball and silence it with a check.
CID 500198: Integer handling issues (INTEGER_OVERFLOW)

Checklist

  • Code modified for feature
  • [ ] Test suite updated with functionality tests
  • [ ] Test suite updated with negative tests
  • [ ] Documentation updated

Reviewer's checklist:

  • [ ] Any issues marked for closing are addressed
  • There is a test suite reasonably covering new functionality or modifications
  • [ ] This feature/change has adequate documentation added
  • Code conform to coding style that today cannot yet be enforced via the check style test
  • [x] Commits have short titles and sensible commit messages
  • Coverity Scan has run if needed (code PR) and no new defects were found

@simo5 simo5 added the covscan Triggers Coverity Scanner label Jul 8, 2024
@github-actions github-actions bot removed the covscan Triggers Coverity Scanner label Jul 8, 2024
src/keymgmt.c Outdated Show resolved Hide resolved
Coverity seem to have updated its rules and is now more concerned about
integer overflows than before. This place has no change of overflowing,
but lets play ball and silence it with a check.
CID 500198: Integer handling issues (INTEGER_OVERFLOW)

Signed-off-by: Simo Sorce <simo@redhat.com>
@simo5 simo5 added the covscan-ok Coverity scan passed label Jul 8, 2024
@simo5
Copy link
Member Author

simo5 commented Jul 8, 2024

Integration tests are currently broken due to rawhide changes :/

@simo5 simo5 merged commit 7d11078 into latchset:main Jul 8, 2024
37 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
covscan-ok Coverity scan passed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants