Skip to content

drivers: input: cap12xx Fix integer overflow warning #90693

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

Merged
merged 1 commit into from
May 27, 2025

Conversation

jeremydick
Copy link
Contributor

Check that calsens values are valid to prevent integer overflow

Coverity-CID: 524767
Fixes #90481

@github-actions github-actions bot added the area: Input Input Subsystem and Drivers label May 27, 2025
@github-actions github-actions bot requested a review from fabiobaltieri May 27, 2025 19:16
Check that calsens values are valid to prevent integer overflow

Coverity-CID: 524767
Fixes zephyrproject-rtos#90481

Signed-off-by: Jeremy Dick <[email protected]>
@jeremydick jeremydick force-pushed the cap12xx_overflow_fix branch from 4dc646b to 0663507 Compare May 27, 2025 19:32
@jeremydick jeremydick requested a review from fabiobaltieri May 27, 2025 19:33
Copy link
Member

@fabiobaltieri fabiobaltieri left a comment

Choose a reason for hiding this comment

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

Thanks!

@fabiobaltieri fabiobaltieri added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label May 27, 2025
Copy link

@kartben kartben merged commit 621f29e into zephyrproject-rtos:main May 27, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Input Input Subsystem and Drivers Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Coverity CID: 524767] Overflowed constant in drivers/input/input_cap12xx.c
4 participants