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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
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
2 participants