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

drivers: dac: dacx3608: Fix bad shift operation #82441

Conversation

martinjaeger
Copy link
Member

The parameter provided to the BIT() macro must be checked so that the shift operation does not overflow the variable.

Fixes #81990

The parameter provided to the `BIT()` macro must be checked so that
the shift operation does not overflow the variable.

Fixes zephyrproject-rtos#81990

Signed-off-by: Martin Jäger <[email protected]>
@zephyrbot zephyrbot added the area: DAC Digital-to-Analog Converter label Dec 2, 2024
@kartben kartben merged commit 075cb21 into zephyrproject-rtos:main Jan 7, 2025
27 checks passed
@martinjaeger martinjaeger deleted the dacx3608-fix-coverity-issue-81990 branch January 7, 2025 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: DAC Digital-to-Analog Converter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Coverity CID: 434508] Bad bit shift operation in drivers/dac/dac_dacx3608.c
4 participants